/** * Copyright (c) 2019-present Houfeng * @author Houfeng */ /// import { ICommand } from "./Command"; import { ICommandManager } from "./ICommandManager"; import { StageModel } from "../Stage"; import { EventEmitter } from "events"; export declare class CommandManager extends EventEmitter implements ICommandManager { private __stage; get stage(): StageModel; constructor(stage: StageModel, size?: number); private __size; get size(): number; private __undoStack; get undoStack(): ICommand[]; set undoStack(value: ICommand[]); private __redoStack; get redoStack(): ICommand[]; set redoStack(value: ICommand[]); undo: () => void; redo: () => void; push: (command: ICommand) => void; static commands: any[]; protected toCommand(opts: ICommand): any; apply: (command: ICommand, action?: "redo" | "undo") => void; dispatch: (command: ICommand) => void; clear: () => void; }