import * as React from "react"; export declare function isRefObject(value: React.Ref | undefined): value is React.RefObject; export declare function isRefCallback(value: React.Ref | undefined): value is React.RefCallback; /** * Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument. */ export declare function setRef(refTarget: React.Ref | undefined, ref: T | null): void; /** * Utility for merging refs into one singular callback ref. * If using in a functional component, would recomend using `useMemo` to preserve function identity. */ export declare function mergeRefs(...refs: Array>): React.RefCallback; export declare function getRef(ref: T | React.RefObject | null): T | null; /** * Creates a ref handler which assigns the ref returned by React for a mounted component to a field on the target object. * The target object is usually a component class. * * If provided, it will also update the given `refProp` with the value of the ref. */ export declare function refHandler(refTargetParent: { [k in K]: T | null; }, refTargetKey: K, refProp?: React.Ref | undefined): React.RefCallback;