import { o as requireCapability } from "./src-BekHnJEo.js";
//#region src/segments.ts
function asSegmentsCapable(adapter) {
	return adapter;
}
async function createSegment(adapter, def) {
	requireCapability(adapter, "segments");
	return asSegmentsCapable(adapter).createSegment(def);
}
async function listSegments(adapter, listId) {
	requireCapability(adapter, "segments");
	return asSegmentsCapable(adapter).listSegments(listId);
}
//#endregion
export { asSegmentsCapable, createSegment, listSegments };
