import type { EditTransaction } from '../../core/types/index.js'; export interface UndoCommand { before: EditTransaction[]; after: EditTransaction[]; } export interface UndoState { stack: UndoCommand[]; cursor: number; } export declare function emptyUndo(): UndoState; export declare function pushCommand(state: UndoState, command: UndoCommand): UndoState; export declare function canUndo(state: UndoState): boolean; export declare function canRedo(state: UndoState): boolean; export declare function undo(state: UndoState): { command: UndoCommand; state: UndoState; } | null; export declare function redo(state: UndoState): { command: UndoCommand; state: UndoState; } | null;