import type React from 'react'; type OptionalRef = React.Ref | undefined; /** * Merge multiple refs into a single ref callback. * * - Supports callback refs and object refs. * - Ignores `null`/`undefined` refs. * - Intentionally does not support legacy string refs. */ export declare const mergeRefs: (...refs: OptionalRef[]) => React.RefCallback; /** * Like `mergeRefs`, but also includes an existing ref already present on a React element. * * This is React 18/19 compatible: * - React 19 stores refs on `element.props.ref` * - React 18 and earlier store refs on `element.ref` */ export declare const mergeReactElementRef: ( element: React.ReactElement, ...refs: OptionalRef[] ) => React.RefCallback; /** * @deprecated Prefer `mergeRefs` function instead. This will be removed in a future major release. * @deprecationExpectedRemoval v10 */ export declare const useMergeRefs: (...refs: OptionalRef[]) => React.RefCallback; export {}; //# sourceMappingURL=mergeRefs.d.ts.map