import type { Command, EditorState, Transaction } from '../../tiptap/pm/state';
import { Plugin } from '../../tiptap/pm/state';
export type ActionItemCallback = () => void;
export declare class ActionItem {
    readonly callback: ActionItemCallback;
    constructor(callback: ActionItemCallback);
}
export declare function closeHistory(tr: Transaction): Transaction;
export interface HistoryOptions {
    depth?: number;
    newGroupDelay?: number;
    onHistoryChange?: () => void;
}
export declare function history(config?: HistoryOptions): Plugin;
export declare const undo: Command;
export declare const redo: Command;
export declare const undoNoScroll: Command;
export declare const redoNoScroll: Command;
export declare function undoDepth(state: EditorState): any;
export declare function redoDepth(state: EditorState): any;
export declare function pushActionItem(state: EditorState, dispatch: (tr: Transaction) => void, callback: ActionItemCallback): boolean;
//# sourceMappingURL=history-infra.d.ts.map