import { Dispatch, SetStateAction } from 'react'; type Ref = { readonly current: T; }; declare function useStateRef(): [ S | undefined, Dispatch>, Ref ]; declare function useStateRef(initialState: S | (() => S)): [S, Dispatch>, Ref]; export default useStateRef; //# sourceMappingURL=useStateRef.d.ts.map