/** @see https://github.com/microsoft/tabster/tree/master/src/Shadowdomize */ /** * Finds the closest element from the given element (inclusive) that matches the * given selector. Comparing to the native `Element.closest()`, it penatrates * shadow trees and considers slotted elements as children of their assigned * slot elements’ ancestors. * * @param {Element|ShadowRoot} start * @param {string} selector */ export declare function getClosestElement(start: Element | ShadowRoot, selector: string): any; export declare function nodeContains(node: any, otherNode: any): boolean; /** * Gets the parent element of the given node, crossing shadow boundaries. * Like `Node.parentElement`, but: * - Slotted elements are treated as children of their assigned slot. * - Elements at a shadow root boundary return the shadow host. * * @param {Node} node * @returns {Element|null} */ export declare function getParentElement(node: Node): Element | null; export declare function getLastElementChild(node: any): any; export declare function getLastElementDescendant(container: any): any;