import * as React from "react"; /** * Merges multiple refs into a single callback ref. * * @remarks * This hook is essential when you need to attach multiple refs to the same element, * such as combining a forwarded ref with an internal ref for measurements or * imperative operations. All provided refs will receive the same element instance. * * Supports all ref types: callback refs, mutable ref objects, and `null`/`undefined`. * Inline callback refs create a new function identity on every render; wrap them * in `useCallback` before passing them here to avoid repeated ref synchronization. * * @typeParam T - The type of the element being referenced. * @param refs - Variadic refs to merge. Can include callback refs, ref objects, or undefined. * @returns A callback ref that updates all provided refs. * * @example * ```tsx * const MyComponent = React.forwardRef((props, forwardedRef) => { * const internalRef = useRef(null); * const mergedRef = useMergedRefs(forwardedRef, internalRef); * * return
Content
; * }); * ``` */ export declare function useMergedRefs(...refs: Array | undefined>): React.RefCallback; //# sourceMappingURL=useMergedRefs.d.ts.map