import { DexieCloudDB } from '../db/DexieCloudDB'; import { DexieCloudOptions } from '../DexieCloudOptions'; import { DBOperationsSet, DexieCloudSchema } from 'dexie-cloud-common'; export declare const CURRENT_SYNC_WORKER = "currentSyncWorker"; export interface SyncOptions { isInitialSync?: boolean; cancelToken?: { cancelled: boolean; }; justCheckIfNeeded?: boolean; retryImmediatelyOnFetchError?: boolean; purpose?: 'pull' | 'push'; } export declare function sync(db: DexieCloudDB, options: DexieCloudOptions, schema: DexieCloudSchema, syncOptions?: SyncOptions): Promise; export declare function filterServerChangesThroughAddedClientChanges(serverChanges: DBOperationsSet, addedClientChanges: DBOperationsSet): DBOperationsSet;