import { DevCycleClient } from './Client'; import { DevCycleEvent, DevCycleOptions } from './types'; export declare const EventTypes: { variableEvaluated: string; variableDefaulted: string; }; type AggregateEvent = DevCycleEvent & { target: string; }; export declare class EventQueue { private readonly sdkKey; private readonly options; private readonly client; private eventQueue; private aggregateEventMap; private flushInterval; private flushEventQueueSize; private maxEventQueueSize; private eventQueueBatchSize; constructor(sdkKey: string, dvcClient: DevCycleClient, options: DevCycleOptions); flushEvents(): Promise; /** * Queue DVCAPIEvent for producing */ queueEvent(event: DevCycleEvent): void; /** * Queue DVCEvent that can be aggregated together, where multiple calls are aggregated * by incrementing the 'value' field. */ queueAggregateEvent(event: AggregateEvent): void; private checkEventQueueSize; /** * Turn the Aggregate Event Map into an Array of DVCAPIEvent objects for publishing. */ private eventsFromAggregateEventMap; close(): Promise; } export {};