import WebAwesomeElement from '../../internal/webawesome-element.js'; /** * @summary Mutation observers watch for changes to an element's DOM tree and emit an event when they occur. Provides a * thin, declarative interface to the browser's MutationObserver API. * @documentation https://webawesome.com/docs/components/mutation-observer * @status stable * @since 2.0 * * @event {{ mutationList: MutationRecord[] }} wa-mutation - Emitted when a mutation occurs. * * @slot - The content to watch for mutations. */ export default class WaMutationObserver extends WebAwesomeElement { static css: import("lit").CSSResult; private mutationObserver; /** * Watches for changes to attributes. To watch only specific attributes, separate them by a space, e.g. * `attr="class id title"`. To watch all attributes, use `*`. */ attr: string; /** Indicates whether or not the attribute's previous value should be recorded when monitoring changes. */ attrOldValue: boolean; /** Watches for changes to the character data contained within the node. */ charData: boolean; /** Indicates whether or not the previous value of the node's text should be recorded. */ charDataOldValue: boolean; /** Watches for the addition or removal of new child nodes. */ childList: boolean; /** Disables the observer. */ disabled: boolean; connectedCallback(): void; disconnectedCallback(): void; private handleMutation; private startObserver; private stopObserver; handleDisabledChange(): void; handleChange(): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'wa-mutation-observer': WaMutationObserver; } }