import type { Dispatch, SetStateAction } from 'react'; type GetStateAction = () => S; declare function useGetState(initialState: S | (() => S)): [S, Dispatch>, GetStateAction]; declare function useGetState(): [ S | undefined, Dispatch>, GetStateAction ]; export default useGetState;