import type Fetch from '../../fetch'; import type { Crypto } from '@voiceflow/common'; import Fetcher from '../fetcher'; interface HashOptions { envIDs?: K[]; hashed?: K[]; teamhashed?: K[]; } interface TrackOptions

, K extends keyof P> extends HashOptions { properties?: P; } interface PublicTrackOptions

, K extends keyof P> extends TrackOptions { anonymousID?: string; } interface IdentifyOptions, K extends keyof T> extends HashOptions { traits: T; } interface AnalyticsOptions { encryption?: Crypto.Synchronous; batching?: boolean; } declare class Analytics extends Fetcher { private batching?; private encryption?; private publicQueue; private privateQueue; constructor(fetch: Fetch, options?: AnalyticsOptions); protected get endpoint(): "analytics" | "vf-ping"; private get encrypted(); private encryptedPayload; private onFlushPublic; private onFlushPrivate; setBatching(batching: boolean): void; flush(): Promise; track

, K extends keyof P>(event: string, { envIDs, hashed, teamhashed, properties }?: TrackOptions): Promise; trackPublic

, K extends keyof P>(event: string, { envIDs, hashed, teamhashed, anonymousID, properties }?: PublicTrackOptions): Promise; identify, K extends keyof T>({ envIDs, traits, hashed, teamhashed, }: IdentifyOptions): Promise; identifyWorkspace(id: string, properties: T): Promise; } export default Analytics; //# sourceMappingURL=index.d.ts.map