import { i as MarketingAdapter } from "./index-Ot3FsdgL.js";
import { Segment, SegmentFilter } from "./self-managed.js";
//#region src/segments.d.ts
type SegmentsCapable = {
  createSegment(def: {
    name: string;
    listId: string;
    filter: SegmentFilter;
  }): Promise<Segment>;
  listSegments(listId?: string): Promise<Segment[]>;
};
declare function asSegmentsCapable(adapter: MarketingAdapter): SegmentsCapable;
declare function createSegment(adapter: MarketingAdapter, def: {
  name: string;
  listId: string;
  filter: SegmentFilter;
}): Promise<Segment>;
declare function listSegments(adapter: MarketingAdapter, listId?: string): Promise<Segment[]>;
//#endregion
export { type Segment, type SegmentFilter, SegmentsCapable, asSegmentsCapable, createSegment, listSegments };