import { SetStateAction } from "react";
declare type Dispatch<Action> = (newState: Action, replace: boolean) => void;
declare function useHistoryState<State>(initialState: State | (() => State), key: string): [State, Dispatch<SetStateAction<State>>];
export default useHistoryState;
