UNPKG

overcentric

Version:

Overcentric watches your website, product, and users - and tells you what matters and what to do about it.

23 lines (22 loc) 680 B
export interface EventQueueConfig { projectId: string; endpoint?: string; onDebugLog?: (message: string) => void; } export declare class EventQueue { private static instance; private eventQueue; private flushTimeoutId; private config; private readonly MAX_BATCH_SIZE; private readonly FLUSH_INTERVAL; private readonly MAX_RETRIES; private readonly DEFAULT_ENDPOINT; private constructor(); static getInstance(config: EventQueueConfig): EventQueue; private logDebug; private setupEventListeners; addEvent(eventName: string, properties: Record<string, any>): void; private scheduleFlush; private flushEvents; }