import type { ReadonlySignal } from '@nonoun/native-core'; import type { Command } from './types.ts'; import type { CommandBus } from './command-bus.ts'; export declare class CommandHistory { #private; readonly undoStack: ReadonlySignal; readonly redoStack: ReadonlySignal; readonly canUndo: ReadonlySignal; readonly canRedo: ReadonlySignal; push(command: Command): void; undo(bus: CommandBus): Command | null; redo(bus: CommandBus): Command | null; getLog(): readonly Command[]; setMaxSize(n: number): void; clear(): void; } export declare function createCommandHistory(maxSize?: number): CommandHistory; //# sourceMappingURL=command-history.d.ts.map