import { Ref } from 'react'; /** * Fans one element out to several refs, for a component that needs the node itself *and* * hands it to the consumer through a `ref` prop. * * The returned callback is a new function on every render, so React detaches and reattaches * it each time (null, then the node). Every ref here is therefore written twice per render, * which is fine for storing a node and wrong for anything with a side effect. Call it inline * rather than memoising: a memo would have to list the refs it closes over, and a consumer * passing an inline callback ref changes that identity every render anyway. */ export declare function mergeRefs(...refs: (Ref | undefined)[]): (node: T | null) => void;