import type { Ref } from 'react'; /** * Assign one value to any number of refs — callback refs, object refs, or * `null`/`undefined` slots. Used when a component keeps an internal ref to its * root node and still has to honor the ref its consumer forwarded in. */ export declare function mergeRefs(...refs: Array | undefined>): (value: T | null) => void; /** * Memoized {@link mergeRefs}. Keeps the composed callback stable while the * individual refs are unchanged, so React doesn't detach and re-attach the * node on every render. * * @example * const Component = forwardRef((props, ref) => { * const internalRef = useRef(null); * return ; * }); */ export declare function useMergedRef(...refs: Array | undefined>): (value: T | null) => void;