/** * Merges multiple React refs into a single ref callback function. * * This utility function combines multiple refs (callback refs, mutable refs, etc.) * into a single callback ref that updates all provided refs. * * @param refs - An array of refs to be merged. Can contain: * - MutableRefObject * - LegacyRef * - undefined * - null * * @returns A RefCallback function that updates all provided refs with the current value * * @example * ```tsx * const firstRef = useRef(null); * const secondRef = useRef(null); * *
* ``` * * @typeParam T - The type of value the refs will reference */ export declare function mergeRefs(refs: Array | React.LegacyRef | undefined | null>): React.RefCallback;