/** * @returns the `attribute` from the closest element that has it, * using `closest` doesn't work in case the element is inside a shadow dom, * and thus `closest` stops inside of the shadow root */ export declare function getClosestAttribute(element: Node | Element | ShadowRoot | null | undefined, attribute: string): string | undefined;