import { CollaborationProps } from '../sync-local/types'; import { DdocProps } from '../types'; import * as Y from 'yjs'; interface UseYjsSetupArgs { onChange?: DdocProps['onChange']; enableIndexeddbSync?: boolean; ddocId?: string; collaboration?: CollaborationProps; onCollaboratorChange?: DdocProps['onCollaboratorChange']; onIndexedDbError?: (error: Error) => void; } export declare const useYjsSetup: ({ onChange, enableIndexeddbSync, ddocId, collaboration, onCollaboratorChange, onIndexedDbError, }: UseYjsSetupArgs) => { ydoc: Y.Doc; onConnect: (connectConfig: import('../types').CollabConnectionConfig) => void; onDisconnect: () => void; isReady: boolean; isSyncing: boolean; terminateSession: () => void; updateTitle: (args: { encryptedTitle: string; documentTitle: string; }) => void; awareness: import('y-protocols/awareness.js').Awareness | null; hasCollabContentInitialised: boolean; isIndexeddbSynced: boolean; initialiseYjsIndexedDbProvider: () => Promise; refreshYjsIndexedDbProvider: () => Promise; flushPendingUpdate: () => void; collabState: import('../types').CollabState; }; export {};