import { EditorState, Transaction, MetaSlot, Plugin } from "../../state/src"; export declare const closeHistorySlot: MetaSlot; export declare function history({ minDepth, newGroupDelay }?: { minDepth?: number; newGroupDelay?: number; }): Plugin; export declare function undo({ state, dispatch }: { state: EditorState; dispatch: (tr: Transaction) => void; }): boolean; export declare function redo({ state, dispatch }: { state: EditorState; dispatch: (tr: Transaction) => void; }): boolean; export declare function undoSelection({ state, dispatch }: { state: EditorState; dispatch: (tr: Transaction) => void; }): boolean; export declare function redoSelection({ state, dispatch }: { state: EditorState; dispatch: (tr: Transaction) => void; }): boolean; export declare function closeHistory(tr: Transaction): Transaction; export declare function undoDepth(state: EditorState): number; export declare function redoDepth(state: EditorState): number; export declare function undoSelectionDepth(state: EditorState): number; export declare function redoSelectionDepth(state: EditorState): number;