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