export default function useWhenElementRefReady(ref: T | import("react").MutableRefObject, onResolved?: (element: T) => void | import('./types.js').Destructor): any;