import { MutableRefObject } from 'react'; /** * provide a ref for only calculate `cb` once * prevent `useRef(getValue())`, that `getValue` calculate every re-render * * @param cb that get method of get this ref init value, only calculate once * @returns same as `useRef` result * */ export declare function useResultRef(cb: () => T): MutableRefObject;