import type { UIElement } from '@instructure/shared-types'; /** * --- * category: utilities/DOM * --- * * Returns the underlying DOM node. It looks the following places: * - If it's a native HTML element e.g. `HtmlSpanElement` its returned as is. * - If the element has a non-nullish `ref` prop or instance variable which is a * `HTMLElement` its returned. If it`s something else then `findDOMNode` is called * on the object. (it also checks `ref.current`) * - If the element has a `ref` prop or instance variable whose value is `null`, * `undefined` is returned. * - If the element does not have a `ref` prop or instance variable `undefined` * is returned with a warning * @module findDOMNode * * @param el - component, DOM node, or function returning a DOM node * @returns The native DOM node of this element or `undefined` */ declare function findDOMNode(el?: UIElement): Element | Node | Window | undefined; export default findDOMNode; export { findDOMNode }; //# sourceMappingURL=findDOMNode.d.ts.map