import { Editor } from '../../core/Editor.js'; export declare function getRevision(editor: Editor): string; export declare function incrementRevision(editor: Editor): string; /** * Restore revision to a previously captured value. * * Used for rollback when a compound operation (e.g. structured insert) * partially commits parts mutations but the overall operation fails. */ export declare function restoreRevision(editor: Editor, revision: string): void; export declare function initRevision(editor: Editor): void; /** * Subscribe to the editor's transaction events so that revision advances * on every document-changing transaction, regardless of source. * * Safe to call multiple times — only subscribes once per editor instance. * * Transactions tagged with `superdoc/block-identity-repair` are exempt: * the repair pass rewrites internal block-identity attrs without changing * any caller-visible content, so bumping the optimistic-concurrency counter * would invalidate a caller's `expectedRevision` for a non-content change. * The repair is also non-undoable (`addToHistory: false`) and its emitted * AttrSteps carry no `from`/`to` range, so collaborators see it as * remediation rather than an edit. */ export declare function trackRevisions(editor: Editor): void; export declare function checkRevision(editor: Editor, expectedRevision: string | undefined): void; //# sourceMappingURL=revision-tracker.d.ts.map