import { IStyleLike } from "@mml-io/networked-dom-web"; import { VIRTUAL_ELEMENT_BRAND } from "./brands"; import { VirtualEvent } from "./VirtualEvent"; import { VirtualLifecycleCallbacks, VirtualNode } from "./VirtualNode"; type VirtualEventHandler = (event: VirtualEvent | Event) => void; export declare class VirtualHTMLElement extends VirtualNode implements VirtualLifecycleCallbacks { readonly [VIRTUAL_ELEMENT_BRAND]: true; private _attributes; private _eventListeners; readonly style: IStyleLike; constructor(); get tagName(): string; get id(): string; set id(value: string); get children(): VirtualHTMLElement[]; getAttribute(name: string): string | null; setAttribute(name: string, value: string): void; removeAttribute(name: string): void; getAttributeNames(): string[]; hasAttribute(name: string): boolean; get attributes(): { name: string; value: string; }[]; addEventListener(type: string, listener: VirtualEventHandler): void; removeEventListener(type: string, listener: VirtualEventHandler): void; /** * Invokes only this node's listeners for the event, without bubbling. * Returns whether propagation was stopped. */ private _dispatchToLocalListeners; dispatchEvent(event: VirtualEvent | Event): boolean; querySelector(selector: string): VirtualHTMLElement | null; querySelectorAll(selector: string): VirtualHTMLElement[]; /** * Splits a selector string on whitespace, but preserves quoted attribute * values (e.g. `[content='Cube Clicks: 0, Label Clicks: 1']`). */ private static _splitSelectorParts; private static _warnUnsupportedSelector; private static _parseSelector; private static _matchesParsed; private _querySelectorAllParsed; get innerHTML(): string; private _serializeChildren; private static _escapeAttr; private static _escapeText; set innerHTML(value: string); get outerHTML(): string; connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; } export {}; //# sourceMappingURL=VirtualHTMLElement.d.ts.map