import type { Node as ProseMirrorNode } from '@tiptap/pm/model'; import type { EditorState, Transaction } from '@tiptap/pm/state'; export interface WorkDocumentBookmarkReferenceTarget { type: 'bookmark'; id: string; name: string; title: string; display: string; instruction: string; } export interface WorkDocumentBookmarkReferenceRange { id: string; name: string; from: number; to: number; } export interface WorkDocumentBookmarkReferenceRename { from: number; to: number; previousId: string; nextId: string; previousName: string; nextName: string; } export declare function docxBookmarkReferenceTarget(instruction: string): string | null; export declare function supportedDocxBookmarkReferenceInstruction(instruction: string): boolean; export declare function documentBookmarkReferenceInstruction(name: string, source?: string): string; export declare function documentBookmarkReferenceDisplay(document: ProseMirrorNode, bookmark: Pick): string; export declare function synchronizeDocumentBookmarkReferenceNodes(state: EditorState, transaction: Transaction, bookmarks: readonly WorkDocumentBookmarkReferenceRange[], renames: readonly WorkDocumentBookmarkReferenceRename[]): void; export declare function normalizeDocumentBookmarkReferencesHtml(source: string): string; export declare function retargetDomBookmarkReferences(root: HTMLElement, start: HTMLElement, end: HTMLElement, previous: { id: string; name: string; }, next: { id: string; name: string; }): void;