import { ReactElement, Ref } from 'react'; /** * `ref` is passed as prop in React 19, whereas `ref` is directly attached to * children in React 18 below check is to ensure `ref` is accessible in both * cases */ declare function getElementRef(element: ReactElement): Ref; export { getElementRef };