interface UseHistoryActions { set: (payload: T) => void; reset: (payload?: T) => void; undo: () => void; redo: () => void; canUndo: boolean; canRedo: boolean; } interface UseHistoryState { past: T[]; present: T; future: T[]; } /** * Hook that add state history with undo/redo functionality */ export declare const useHistory: (initialPresent: T) => [UseHistoryState, UseHistoryActions]; export {};