import type { Editor } from '@tiptap/core'; import type { WorkspaceContextMenuItem } from '../../workspace/components/workspace-context-menu'; import { type WorkAgentProposalRequest, type WorkAgentProposalTarget } from '../work-agent-proposal'; import type { WorkEditorAgentRequest } from '../work-agent-request'; import type { WorkDocumentSelectionAction, WorkDocumentSelectionMenuIcon, WorkDocumentSelectionMenuItem } from '../work-document-selection-menu'; export { type DocumentTextStatistics, documentTextStatistics, documentWordCount, } from '../work-document-text-statistics'; export declare function documentEditorSelectionText(editor: Pick): string; export declare function documentAgentMenuItems(selection: string, onAgentRequest: (request: WorkEditorAgentRequest) => void | Promise, proposalOptions?: { target: WorkAgentProposalTarget; apply: WorkAgentProposalRequest['apply']; }): WorkspaceContextMenuItem[]; export declare function documentCustomSelectionMenuItems(items: readonly WorkDocumentSelectionMenuItem[], createAction: () => WorkDocumentSelectionAction): WorkspaceContextMenuItem[]; interface CustomSelectionAction { context: Context; dispose(): void; } interface CustomSelectionMenuItem { id: string; label: string; icon?: WorkDocumentSelectionMenuIcon; shortcut?: string; ariaKeyShortcut?: string; danger?: boolean; disabled?: boolean; separatorBefore?: boolean; onSelect(context: Context): void | Promise; } export declare function customSelectionMenuItems(items: readonly CustomSelectionMenuItem[], createAction: () => CustomSelectionAction): WorkspaceContextMenuItem[]; export declare function documentPageCount(editor: Editor): number; export declare function documentCurrentPage(editor: Editor): number; export declare function documentHasRefreshableFields(editor: Editor): boolean;