/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ import type { CanUndef } from '../../types'; import type { Command } from './command'; export declare class Stack { private size; private 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; }