/** * Command Manager for Undo/Redo functionality * Implements the Command pattern for editor operations */ export interface EditorCommand { /** Execute the command */ execute(): void; /** Undo the command */ undo(): void; /** Redo the command (by default, calls execute again) */ redo(): void; /** Description for UI display */ description: string; } export declare class CommandManager { private undoStack; private redoStack; private maxStackSize; /** * Execute a command and add it to the undo stack */ execute(command: EditorCommand): void; /** * Undo the last command */ undo(): boolean; /** * Redo the last undone command */ redo(): boolean; /** * Check if undo is available */ canUndo(): boolean; /** * Check if redo is available */ canRedo(): boolean; /** * Get description of next undo command */ getUndoDescription(): string | null; /** * Get description of next redo command */ getRedoDescription(): string | null; /** * Clear all undo/redo history */ clear(): void; } //# sourceMappingURL=CommandManager.d.ts.map