import { Dispatch } from 'react'; import { IHookStateInitAction, IHookStateSetAction } from './misc/hookState'; interface HistoryState { history: S[]; position: number; capacity: number; back: (amount?: number) => void; forward: (amount?: number) => void; go: (position: number) => void; } export declare type UseStateHistoryReturn = [S, Dispatch>, HistoryState]; export declare function useStateWithHistory(initialState: IHookStateInitAction, capacity?: number, initialHistory?: I[]): UseStateHistoryReturn; export declare function useStateWithHistory(): UseStateHistoryReturn; export {};