/** * Sync service for browser-use TypeScript */ import { EventEmitter } from 'events'; import { SyncConfig, SyncDataType, SyncStatus } from './types'; /** * Sync service for synchronizing data with cloud */ export declare class SyncService extends EventEmitter { private config; private authService; private pendingOperations; private syncTimer; private connected; private lastSyncTime; constructor(config?: Partial); /** * Get current sync status */ getStatus(): SyncStatus; /** * Create a sync item */ createItem(type: SyncDataType, data: Record): Promise; /** * Update a sync item */ updateItem(id: string, type: SyncDataType, data: Record): Promise; /** * Delete a sync item */ deleteItem(id: string, type: SyncDataType): Promise; /** * Authenticate with the sync service */ authenticate(apiKey?: string, userId?: string): Promise; /** * Perform immediate sync */ syncNow(): Promise; /** * Start sync service */ start(): Promise; /** * Stop sync service */ stop(): Promise; /** * Initialize the sync service */ private initialize; /** * Test connection to sync service */ private testConnection; /** * Send operations to sync service */ private sendOperations; /** * Start the periodic sync timer */ private startSyncTimer; } /** * Get the global sync service instance */ export declare function getSyncService(): SyncService; /** * Initialize sync service with custom configuration */ export declare function initializeSync(config?: Partial): SyncService; //# sourceMappingURL=service.d.ts.map