import { IndexeddbPersistence } from 'y-indexeddb'; import { CollaborationProps } from '../../sync-local/types'; import * as Y from 'yjs'; export declare const useEditorSync: (dsheetId: string, enableIndexeddbSync?: boolean, isReadOnly?: boolean, collaboration?: CollaborationProps, onCollabUpdate?: (fullState: string, updateChunk: string) => void) => { ydocRef: import('react').MutableRefObject; persistenceRef: import('react').MutableRefObject; syncStatus: "error" | "syncing" | "initializing" | "synced"; isSyncedRef: import('react').MutableRefObject; refreshIndexedDB: () => Promise; collabState: import('../..').CollabState; isCollabReady: boolean; isCollabSyncing: boolean; terminateSession: () => void; awareness: import('y-protocols/awareness.js').Awareness | null; hasCollabContentInitialised: boolean; };