import { IUndoRedoStep, UndoRedoStep } from './undoRedoStep'; import { UndoRedoRecord } from './types'; export interface IUndoRedoStepManager { readonly isMin: boolean; readonly isMax: boolean; getStep(index: number): IUndoRedoStep | undefined; addStep(step: IUndoRedoStep): void; undoStep(): IUndoRedoStep | undefined; redoStep(): IUndoRedoStep | undefined; } export declare class UndoRedoStepManager implements IUndoRedoStepManager { private static readonly _initialCapacity; private static readonly _initialUndoIndex; private static readonly _initialRedoIndex; private _stepList; private _capacity; private _undoIndex; private _redoIndex; constructor(capacity: number); get isMin(): boolean; get isMax(): boolean; getStep(index?: number): UndoRedoStep | undefined; addStep(step: UndoRedoStep): void; undoStep(): UndoRedoStep | undefined; redoStep(): UndoRedoStep | undefined; }