import type { Editor } from '@tiptap/core'; import type { WorkOfficeCollaborationActor } from '../../../collaboration/office-collaboration'; import { type WorkDocumentCommentView } from '../work-document-comments'; import type { WorkDocumentContent } from '../work-types'; import type { DocumentCommentDraft } from './document-comment-composer'; export interface DocumentCommentsController { canDeleteComment: (id: string) => boolean; canInsert: boolean; close: () => void; closeDraft: (restoreEditorFocus?: boolean) => void; comments: WorkDocumentCommentView[]; deleteComment: (id: string) => void; draft: DocumentCommentDraft | null; open: boolean; reply: (id: string, text: string) => void; setOpen: (open: boolean) => void; startDraft: () => void; submitDraft: (text: string) => string | null; toggleOpen: () => void; toggleResolved: (id: string) => void; } export declare function useDocumentComments({ actor, contentRef, defaultOpen, deleteOwnOnly, editor, enabled, onBeforeDraft, }: { actor?: WorkOfficeCollaborationActor; contentRef: { current: WorkDocumentContent; }; defaultOpen?: boolean; deleteOwnOnly?: boolean; editor: Editor | null; enabled?: boolean; onBeforeDraft?: () => void; }): DocumentCommentsController;