import type { Input, ValidInputValue } from './inputs/Input'; /** * A recorded "action" callback that can be re-played forwards or backwards. */ export type Commit = { from: V; to: V; target: Input; setter?: (v: V) => void; }; export declare class UndoManager { pointer: number; maxHistory: number; stack: Commit[]; /** * Ignores's all commits while `true`. */ lockedExternally: boolean; /** * Ignores's all commits while `true`. */ private _lockedInternally; constructor(); commit(commit: Commit, _debounce?: number): void; undo: () => void; redo: () => void; clear(): void; }