import Muya from '../index'; import { Nullable } from '../types'; import type { JSONOpList } from 'ot-json1'; import { TSelection } from '../selection/types'; import type { TState } from '../state/types'; interface IOptions { delay: number; maxStack: number; userOnly: boolean; } type HistoryAction = 'undo' | 'redo'; declare class History { muya: Muya; private options; private lastRecorded; private ignoreChange; private selectionStack; private stack; get selection(): import("../selection").default; constructor(muya: Muya, options?: IOptions); listen(): void; change(source: HistoryAction, dest: HistoryAction): void; clear(): void; cutoff(): void; getLastSelection(): Nullable; record(op: JSONOpList, doc: TState[]): void; redo(): void; transform(op: JSONOpList): void; undo(): void; } export default History;