export declare class HistoryManager<T = any> {
    private history;
    private redoStack;
    constructor(initialState?: T | null);
    add(state: T): void;
    undo(): NonNullable<T> | null;
    redo(): T | null;
    getCurrent(): NonNullable<T> | null;
    clear(): void;
    canUndo(): boolean;
    canRedo(): boolean;
    getHistory(): T[];
}
