/** * Service Worker Manager for ConversionIQ SDK * Handles offline event queuing and background synchronization */ import { ConversionIQConfig, QueuedEvent } from '../types/index'; export declare class ServiceWorkerManager { private config; private swConfig; private registration; private isSupported; constructor(config: ConversionIQConfig); /** * Initialize Service Worker if supported and enabled */ init(): Promise; /** * Queue event for offline processing */ queueOfflineEvent(event: QueuedEvent): Promise; /** * Trigger background sync for queued events */ triggerSync(): Promise; /** * Get offline queue statistics */ getOfflineStats(): Promise<{ queueSize: number; lastSync: number; }>; /** * Clear offline queue */ clearOfflineQueue(): Promise; /** * Setup message handling between main thread and service worker */ private setupMessageHandling; /** * Setup background sync registration */ private setupBackgroundSync; /** * Send message to service worker and wait for response */ private sendMessageToSW; /** * Check if Service Worker features are supported */ isServiceWorkerSupported(): boolean; /** * Generate Service Worker code for deployment */ static generateServiceWorkerCode(config?: Partial): string; /** * Clean up Service Worker */ destroy(): Promise; } //# sourceMappingURL=ServiceWorkerManager.d.ts.map