/** * Defines a custom Element (if isnt defined already) * * @param {string} name - Name for the custom element * @param {CustomElementConstructor} constructor - Class for the * custom element * @param {ElementDefinitionOptions} [options] - Options passed to * `customElements.define` * @url https://pota.quack.uy/components/customElement */ export function customElement(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; export class CustomElement extends HTMLElement { /** * Static base stylesheets for the custom element. * * @type {(CSSStyleSheet | string)[]} */ static baseStyleSheets: (CSSStyleSheet | string)[]; /** * Static additional stylesheets for the custom element. * * @type {(CSSStyleSheet | string)[]} */ static styleSheets: (CSSStyleSheet | string)[]; /** * Shortcut for this.shadowRoot.innerHTML * * @param {string | Component} value */ set html(value: string | Component); /** * Emits an event * * @param {string} eventName * @param {CustomEventInit} [data] */ emit(eventName: string, data?: CustomEventInit): void; } //# sourceMappingURL=CustomElement.d.ts.map