import type { MutableRefObject, Ref, RefCallback } from "react"; /** * @remarks \@since 2.3.0 */ export declare type EnsuredRefs = readonly [ MutableRefObject, RefCallback ]; /** * This is mostly an internal hook that allows for an optional ref (normally * from props or hook options) to be merged with a hook's required `ref`. This * will return a MutableRefObject used for DOM manipulation in a custom hook * followed by a ref callback function that should be passed to the DOM node * that will ensure that both the optional `propRef` and hook ref are updated. * * @remarks \@since 2.3.0 */ export declare function useEnsuredRef(propRef?: Ref): EnsuredRefs;