type UseUndoRedoReturn = { state: T; set: (newState: T) => void; undo: () => void; redo: () => void; canUndo: boolean; canRedo: boolean; clear: () => void; }; /** * A hook that provides undo/redo functionality for a state value. * @param initialState The initial state value. * @param limit The maximum number of states to keep in the undo/redo history. * @returns An object containing the current state, functions to update the state, * and flags indicating whether undo/redo actions are possible. */ export declare function useUndoRedo(initialState: T, limit?: number): UseUndoRedoReturn; export default useUndoRedo; //# sourceMappingURL=useUndoRedo.d.ts.map