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. */ export declare function trackRevisions(editor: Editor): void; export declare function checkRevision(editor: Editor, expectedRevision: string | undefined): void; //# sourceMappingURL=revision-tracker.d.ts.map