import type { MutableRefObject } from 'react'; export type UseGetterRefReturnsGetter = () => T; export type UseGetterRefReturns = [ /** * A mutable ref object that can be used to store a value. */ ref: MutableRefObject, /** * A getter function that returns the current value of the ref. */ UseGetterRefReturnsGetter ]; /** * A React Hook that create a gettable ref, a function way to get the latest value of a ref. */ export declare function useGetterRef(initial: T): UseGetterRefReturns;