/** * Mirror selected attributes from an ancestor element onto a component host so * styling can use standards-compliant `:host([attr])` selectors instead of the * non-standard, Safari/Firefox-incompatible `:host-context()`. * * Optionally tracks the ancestor's hover state and reflects it as a * `data-parent-hover` attribute on the host (a stand-in for * `:host-context(:hover)`). */ export interface AncestorAttrMirror { /** Stop observing and remove all listeners. Call from disconnectedCallback. */ disconnect(): void; } export interface MirrorAncestorOptions { /** Reflect the ancestor's :hover state as `data-parent-hover` on the host. */ trackHover?: boolean; } export declare function mirrorAncestorAttributes(host: HTMLElement, ancestorSelector: string, attributes: string[], options?: MirrorAncestorOptions): AncestorAttrMirror;