/** * Find the closest parent element matching the given selector while traversing * up the DOM tree (including Shadow DOM). */ export declare function findClosest(selector: string, element: Element | ShadowRoot): Element | null;