import { IContentManager, IEditorCore } from '../../typings';
import { HistoryStackItem, IUndoManager } from '../../typings/status/i-undo-manager';
export declare class UndoManager extends IUndoManager {
    private _editor;
    private _onUndoChange?;
    contentManager: IContentManager;
    undoStack: HistoryStackItem[];
    redoStack: HistoryStackItem[];
    constructor(_editor: IEditorCore, _contentManager: IContentManager, _undoChange?: (anchorContent: string) => void);
    saveState(): void;
    undo(): void;
    redo(): void;
    destroy(): void;
    private _calcNodePathMatches;
    private _record;
    private _handleInput;
    private _handleUndoOrRedo;
    private _restoreCursor;
}
