import * as React from 'react'; /** * Merges refs into a single memoized callback ref or `null`. * * ```tsx * const rootRef = React.useRef(null); * const refFork = useForkRef(rootRef, props.ref); * * return ( * * ); * ``` * * @param {Array | undefined>} refs The ref array. * @returns {React.RefCallback | null} The new ref callback. */ export default function useForkRef(...refs: Array | undefined>): React.RefCallback | null;