(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+/** @deprecated */
+declare var HTMLDirectoryElement: {
+ prototype: HTMLDirectoryElement;
+ new(): HTMLDirectoryElement;
+ isInstance(obj): obj is HTMLDirectoryElement;
+};
+
+/**
+ * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating elements.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)
+ */
+interface HTMLDivElement extends HTMLElement {
+ /**
+ * Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)
+ */
+ align: string;
+ addEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var HTMLDivElement: {
+ prototype: HTMLDivElement;
+ new(): HTMLDivElement;
+ isInstance(obj): obj is HTMLDivElement;
+};
+
+/**
+ * The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDocument)
+ */
+interface HTMLDocument extends Document {
+ addEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+ [name: string]: any;
+}
+
+declare var HTMLDocument: {
+ prototype: HTMLDocument;
+ new(): HTMLDocument;
+ isInstance(obj): obj is HTMLDocument;
+};
+
+interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, OnErrorEventHandlerForNodesEventMap, TouchEventHandlersEventMap {
+}
+
+/**
+ * Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
+ *
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
+ */
+interface HTMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrForeignElement, OnErrorEventHandlerForNodes, TouchEventHandlers {
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */
+ accessKey: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
+ readonly accessKeyLabel: string;
+ autocapitalize: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */
+ contentEditable: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
+ dir: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */
+ draggable: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */
+ enterKeyHint: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */
+ hidden: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */
+ inert: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */
+ innerText: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */
+ inputMode: string;
+ readonly internals: ElementInternals | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */
+ readonly isContentEditable: boolean;
+ readonly isFormAssociatedCustomElements: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */
+ lang: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */
+ nonce: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */
+ readonly offsetHeight: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */
+ readonly offsetLeft: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */
+ readonly offsetParent: Element | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */
+ readonly offsetTop: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */
+ readonly offsetWidth: number;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
+ outerText: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */
+ popover: string | null;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */
+ spellcheck: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
+ title: string;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */
+ translate: boolean;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */
+ attachInternals(): ElementInternals;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
+ click(): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */
+ hidePopover(): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
+ showPopover(): void;
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
+ togglePopover(force?: boolean): boolean;
+ addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var HTMLElement: {
+ prototype: HTMLElement;
+ new(): HTMLElement;
+ isInstance(obj): obj is HTMLElement;
+};
+
+/**
+ * Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating