import type { DocumentModel } from './model.js'; export interface RevisionEntry { id: string; kind: 'insert' | 'delete' | 'moveFrom' | 'moveTo' | 'formatChange' | 'paragraphChange'; author: string; date?: string; paragraphId: string; /** Present for run-level revisions; absent for paragraph mark/format revisions. */ runIndex?: number; /** The move a `moveFrom`/`moveTo` revision belongs to; both sides resolve together. */ move?: { name: string; rangeId?: string; }; } /** Lists every run/paragraph revision in document order, for navigation and enumeration. */ export declare function listRevisions(model: DocumentModel): RevisionEntry[]; export declare function findRevision(model: DocumentModel, id: string): RevisionEntry | undefined; /** Revision ids resolved together with `id`: every side of the same move, or just `id`. */ export declare function linkedRevisionIds(model: DocumentModel, id: string): string[]; /** Accepts one revision (both sides of a move): keeps insertions, drops deletions, clears format markers. */ export declare const acceptRevision: (model: DocumentModel, id: string) => DocumentModel; /** Rejects one revision (both sides of a move): drops insertions, restores deletions. */ export declare const rejectRevision: (model: DocumentModel, id: string) => DocumentModel; export declare const acceptAllRevisions: (model: DocumentModel) => DocumentModel; export declare const rejectAllRevisions: (model: DocumentModel) => DocumentModel; //# sourceMappingURL=revision-commands.d.ts.map