import type React from 'react'; type AnyRef = React.Ref | undefined | null; /** * Reads the ref attached to a React element across React versions without * triggering dev-mode deprecation warnings: React 19 carries it on * `element.props.ref` (and warns on `element.ref`); React 18 carries it on * `element.ref` (and warns on `element.props.ref`). The warning getters are * detectable via their `isReactWarning` marker. */ export declare function getElementRef(element: React.ReactElement): AnyRef; /** * Composes multiple refs into one callback ref so cloneElement can attach an * internal ref WITHOUT discarding a ref the consumer already put on the * element. Null/undefined entries are skipped. */ export declare function composeRefs(...refs: AnyRef[]): React.RefCallback; export {};