import type { AnyAction, Reducer } from '@reduxjs/toolkit'; export declare const makeHistory: (state?: State) => StateWithHistory; export interface StateWithHistory { past: State[]; present?: State; future: State[]; } export declare const undoable: (options: { reducer: Reducer; actionTypes: { undo: string; redo: string; snapshot: string; }; }) => (state: StateWithHistory | undefined, action: AnyAction) => StateWithHistory;