import { Dispatch, MutableRefObject, SetStateAction } from 'react'; export type CurrentStateType = [S, Dispatch>, MutableRefObject]; declare const useCurrentState: (initialState: S | (() => S)) => CurrentStateType; export default useCurrentState;