import type { CanUndef, IStack } from 'jodit/types'; import type { Command } from './command'; export declare class Stack implements IStack { private readonly size; private readonly commands; private stackPosition; constructor(size: number); get length(): number; private clearRedo; clear(): void; push(command: Command): void; replace(command: Command): void; current(): CanUndef; undo(): boolean; redo(): boolean; canUndo(): boolean; canRedo(): boolean; }