/** * Svelte 5 runes integration with SyncManager. * * Usage in Svelte 5 components: * * ```svelte * * ``` */ import type { SyncManager } from './sync-manager.js'; /** * Subscribe to a collection via SyncManager. * Calls `setter` immediately with current state and on each update. * Returns the unsubscribe function. */ export declare function useSyncCollection(sync: SyncManager, collection: string, setter: (records: any[]) => void): () => void; /** * Subscribe to sync status (pending, conflicts, isOnline). * Calls `setter` immediately and on each sync cycle. * Returns the cleanup function. */ export declare function useSyncStatus(sync: SyncManager, setter: (status: { pending: number; conflicts: number; isOnline: boolean; }) => void, intervalMs?: number): () => void; //# sourceMappingURL=svelte.d.ts.map