UNPKG

@lwc/ssr-runtime

Version:

Runtime complement to @lwc/ssr-compiler

126 lines 4.94 kB
import { ClassList } from './class-list'; import type { Attributes, Properties } from './types'; import type { Stylesheets } from '@lwc/shared'; import type { Signal } from '@lwc/signals'; type EventListenerOrEventListenerObject = unknown; type AddEventListenerOptions = unknown; type EventListenerOptions = unknown; type ShadowRoot = unknown; type ContextVarieties = Map<unknown, Signal<unknown>>; export type LightningElementConstructor = typeof LightningElement; interface PropsAvailableAtConstruction { tagName: string; } export declare const SYMBOL__SET_INTERNALS: unique symbol; export declare const SYMBOL__GENERATE_MARKUP: unique symbol; export declare const SYMBOL__DEFAULT_TEMPLATE: unique symbol; export declare const SYMBOL__CONTEXT_VARIETIES: unique symbol; export declare class LightningElement implements PropsAvailableAtConstruction { #private; static renderMode?: 'light' | 'shadow'; static stylesheets?: Stylesheets; static delegatesFocus?: boolean; static formAssociated?: boolean; static shadowSupportMode?: 'any' | 'reset' | 'native'; accessKey: string; dir: string; draggable: boolean; hidden: boolean; id: string; lang: string; spellcheck: boolean; tabIndex: number; title: string; isConnected: boolean; tagName: string; [SYMBOL__CONTEXT_VARIETIES]: ContextVarieties; constructor(propsAvailableAtConstruction: PropsAvailableAtConstruction & Properties); [SYMBOL__SET_INTERNALS](props: Properties, attrs: Attributes, publicProperties: Set<string>): void; get className(): any; set className(newVal: any); get classList(): ClassList; setAttribute(attrName: string, attrValue: string): void; getAttribute(attrName: string): string | null; hasAttribute(attrName: string): boolean; removeAttribute(attrName: string): void; addEventListener(_type: string, _listener: EventListenerOrEventListenerObject, _options?: boolean | AddEventListenerOptions): void; removeEventListener(_type: string, _listener: EventListenerOrEventListenerObject, _options?: boolean | EventListenerOptions): void; get template(): { synthetic: boolean; }; get children(): never; get childNodes(): never; get firstChild(): never; get firstElementChild(): never; get hostElement(): never; get lastChild(): never; get lastElementChild(): never; get ownerDocument(): never; get style(): never; attachInternals(): never; dispatchEvent(_event: Event): never; getBoundingClientRect(): never; getElementsByClassName(_classNames: string): never; getElementsByTagName(_qualifiedName: unknown): never; querySelector(_selectors: string): never; querySelectorAll(_selectors: string): never; shadowRoot?: ShadowRoot | null; getAttributeNS(_namespace: string | null, _localName: string): string | null; hasAttributeNS(_namespace: string | null, _localName: string): boolean; removeAttributeNS(_namespace: string | null, _localName: string): void; setAttributeNS(_namespace: string | null, _qualifiedName: string, _value: string): void; ariaActiveDescendant: string | null; ariaAtomic: string | null; ariaAutoComplete: string | null; ariaBusy: string | null; ariaChecked: string | null; ariaColCount: string | null; ariaColIndex: string | null; ariaColIndexText: string | null; ariaColSpan: string | null; ariaControls: string | null; ariaCurrent: string | null; ariaDescribedBy: string | null; ariaDescription: string | null; ariaDetails: string | null; ariaDisabled: string | null; ariaErrorMessage: string | null; ariaExpanded: string | null; ariaFlowTo: string | null; ariaHasPopup: string | null; ariaHidden: string | null; ariaInvalid: string | null; ariaKeyShortcuts: string | null; ariaLabel: string | null; ariaLabelledBy: string | null; ariaLevel: string | null; ariaLive: string | null; ariaModal: string | null; ariaMultiLine: string | null; ariaMultiSelectable: string | null; ariaOrientation: string | null; ariaOwns: string | null; ariaPlaceholder: string | null; ariaPosInSet: string | null; ariaPressed: string | null; ariaReadOnly: string | null; ariaRelevant: string | null; ariaRequired: string | null; ariaRoleDescription: string | null; ariaRowCount: string | null; ariaRowIndex: string | null; ariaRowIndexText: string | null; ariaRowSpan: string | null; ariaSelected: string | null; ariaSetSize: string | null; ariaSort: string | null; ariaValueMax: string | null; ariaValueMin: string | null; ariaValueNow: string | null; ariaValueText: string | null; ariaBrailleLabel: string | null; ariaBrailleRoleDescription: string | null; role: string | null; } export {}; //# sourceMappingURL=lightning-element.d.ts.map