/** * `TiptapVeltSuggestions` — suggestion mode (tracked changes) backed by Velt suggestions. * * While Velt's suggestion mode is on, the signed-in user's edits are kept as pending suggestion * marks and committed to Velt as suggestions; accepting or rejecting one in Velt applies or drops * the change in the document. */ import { Extension } from '@tiptap/core'; import type { Editor } from '@tiptap/core'; import { SuggestionSync } from './sync'; import type { TiptapVeltSuggestionsOptions } from './types'; interface SuggestionsStorage { sync: SuggestionSync | null; attachTimer: ReturnType | null; } export declare const TiptapVeltSuggestions: Extension; /** The document JSON with every pending (not yet committed) suggestion dropped. Use it to save content. */ export declare const getContentWithoutPendingSuggestions: (editor: Editor) => Record; /** The document HTML with every pending (not yet committed) suggestion dropped. Use it to save content. */ export declare const getHTMLWithoutPendingSuggestions: (editor: Editor) => string; /** Commits the current user's pending edits now; resolves when the commits have settled. */ export declare const flushSuggestions: (editor: Editor) => Promise; /** The document range of a committed suggestion (by its Velt `targetId`), e.g. to scroll to it; null when absent. */ export declare const getSuggestionRange: (editor: Editor, targetId: string) => { from: number; to: number; } | null; export {};