import { EventSubscriber } from '@verdant-web/common'; type Undoable = () => Undoable | Promise | null; export declare class UndoHistory extends EventSubscriber<{ change: () => void; }> { private _undoable; private _undone; get canUndo(): boolean; get canRedo(): boolean; get undoLength(): number; get redoLength(): number; undo: () => Promise; redo: () => Promise; addUndo: (undoPoint: Undoable) => void; addRedo: (redoPoint: Undoable) => void; clear: () => void; } export {};