import { EventAttributes, EventSubscriber, FunnelStatus, OutcomeStatus } from "autotel/event-subscriber"; //#region src/segment.d.ts interface SegmentConfig { /** Segment write key */ writeKey: string; /** Enable/disable the subscriber */ enabled?: boolean; } declare class SegmentSubscriber implements EventSubscriber { readonly name = "SegmentSubscriber"; readonly version = "1.0.0"; private events; private enabled; private config; private initPromise; constructor(config: SegmentConfig); private initialize; private ensureInitialized; trackEvent(name: string, attributes?: EventAttributes): Promise; trackFunnelStep(funnelName: string, step: FunnelStatus, attributes?: EventAttributes): Promise; trackOutcome(operationName: string, outcome: OutcomeStatus, attributes?: EventAttributes): Promise; trackValue(name: string, value: number, attributes?: EventAttributes): Promise; /** Flush pending events before shutdown */ shutdown(): Promise; } //#endregion export { SegmentConfig, SegmentSubscriber }; //# sourceMappingURL=segment.d.ts.map