import { DdocProps } from './types';
import { ToCItemType } from './components/toc/types';

import * as Y from 'yjs';
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, onChange, onCollaboratorChange, onCommentInteraction, onError, setCharacterCount, setWordCount, ipfsImageUploadFn, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, extensions: externalExtensions, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, collabConfig, ...rest }: Partial<DdocProps>) => {
    editor: import('@tiptap/core').Editor | null;
    isContentLoading: boolean;
    ref: import('react').RefObject<HTMLDivElement>;
    ydoc: Y.Doc;
    refreshYjsIndexedDbProvider: () => Promise<void>;
    activeCommentId: string | null;
    setActiveCommentId: import('react').Dispatch<import('react').SetStateAction<string | null>>;
    focusCommentWithActiveId: (id: string) => void;
    slides: string[];
    setSlides: import('react').Dispatch<import('react').SetStateAction<string[]>>;
    tocItems: ToCItemType[];
    setTocItems: import('react').Dispatch<import('react').SetStateAction<ToCItemType[]>>;
    terminateSession: () => void;
};
