/** * Copyright (c) 2024 Khaled Sameer . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. **/ import { Signal, SignalOptions } from '../core'; /** * Adds undo/redo functionality to a Signal by wrapping it with history tracking * * @param initialValue Initial value for the signal * @param maxHistory Maximum number of history states to maintain * @param options Signal configuration options * @returns Enhanced signal with undo/redo capabilities and history access */ export declare function withHistory(initialValue: T, maxHistory?: number, options?: SignalOptions): Signal & { undo(): void; redo(): void; history: Signal; canUndo: Signal; canRedo: Signal; }; //# sourceMappingURL=withHistory.d.ts.map