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