@native-dom/runtime 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/attributes.d.ts +21 -18
  3. package/dist/attributes.d.ts.map +1 -1
  4. package/dist/attributes.js +115 -137
  5. package/dist/attributes.js.map +1 -1
  6. package/dist/css.d.ts +137 -133
  7. package/dist/css.d.ts.map +1 -1
  8. package/dist/css.js +495 -555
  9. package/dist/css.js.map +1 -1
  10. package/dist/custom-elements.d.ts +22 -18
  11. package/dist/custom-elements.d.ts.map +1 -1
  12. package/dist/custom-elements.js +58 -58
  13. package/dist/custom-elements.js.map +1 -1
  14. package/dist/errors.d.ts +5 -2
  15. package/dist/errors.d.ts.map +1 -1
  16. package/dist/errors.js +10 -6
  17. package/dist/errors.js.map +1 -1
  18. package/dist/event-init.d.ts +81 -77
  19. package/dist/event-init.d.ts.map +1 -1
  20. package/dist/events.d.ts +164 -161
  21. package/dist/events.d.ts.map +1 -1
  22. package/dist/events.js +417 -462
  23. package/dist/events.js.map +1 -1
  24. package/dist/geometry.d.ts +44 -41
  25. package/dist/geometry.d.ts.map +1 -1
  26. package/dist/geometry.js +68 -72
  27. package/dist/geometry.js.map +1 -1
  28. package/dist/history.d.ts +17 -13
  29. package/dist/history.d.ts.map +1 -1
  30. package/dist/history.js +67 -62
  31. package/dist/history.js.map +1 -1
  32. package/dist/index.d.ts +795 -798
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +3020 -3597
  35. package/dist/index.js.map +1 -1
  36. package/dist/observers.d.ts +46 -42
  37. package/dist/observers.d.ts.map +1 -1
  38. package/dist/observers.js +59 -57
  39. package/dist/observers.js.map +1 -1
  40. package/dist/platform.d.ts +71 -67
  41. package/dist/platform.d.ts.map +1 -1
  42. package/dist/platform.js +204 -212
  43. package/dist/platform.js.map +1 -1
  44. package/dist/stats.d.ts +18 -31
  45. package/dist/stats.d.ts.map +1 -1
  46. package/dist/stats.js +75 -87
  47. package/dist/stats.js.map +1 -1
  48. package/package.json +6 -7
  49. package/dist/event-init.js +0 -2
  50. package/dist/event-init.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,24 +1,222 @@
1
- import type { NativeDocument as NativeDocumentBinding } from "@native-dom/native-core";
2
- import { DOMTokenList, type DOMStringMap } from "./attributes.js";
1
+ import { DOMStringMap, DOMTokenList } from "./attributes.js";
3
2
  import { CSSMediaRule, CSSRule, CSSStyleDeclaration, CSSStyleRule, CSSStyleSheet } from "./css.js";
4
- import { CustomElementRegistry, type CustomElementConstructor, type CustomElementDefinition } from "./custom-elements.js";
3
+ import { CustomElementConstructor, CustomElementDefinition, CustomElementRegistry } from "./custom-elements.js";
5
4
  import { DOMException } from "./errors.js";
6
- import { ClipboardEvent, CustomEvent, Event, EventTarget, FocusEvent, InputEvent, KeyboardEvent, MediaQueryList, MediaQueryListEvent, MouseEvent, PointerEvent, PopStateEvent, SubmitEvent, Touch, TouchEvent, UIEvent } from "./events.js";
7
- import { DOMRect, DOMRectReadOnly, ValidityState, type DOMRectInit } from "./geometry.js";
8
- import { History } from "./history.js";
9
- import { IntersectionObserver, IntersectionObserverEntry, ResizeObserver } from "./observers.js";
10
- import { getRuntimeStats, resetRuntimeStats, setRuntimeStatsEnabled, type RuntimeStatsSnapshot } from "./stats.js";
11
5
  import { DataTransfer, DataTransferItemList, FileList, Location, Navigator, Screen, ScreenOrientation, Storage, URL } from "./platform.js";
12
- export { ClipboardEvent, CSSMediaRule, CSSRule, CSSStyleDeclaration, CSSStyleRule, CSSStyleSheet, CustomEvent, CustomElementRegistry, DataTransfer, DataTransferItemList, DOMException, DOMTokenList, DOMRect, DOMRectReadOnly, Event, EventTarget, FileList, FocusEvent, getRuntimeStats, History, InputEvent, IntersectionObserver, IntersectionObserverEntry, KeyboardEvent, Location, MediaQueryList, MediaQueryListEvent, MouseEvent, Navigator, PointerEvent, PopStateEvent, resetRuntimeStats, ResizeObserver, Screen, ScreenOrientation, setRuntimeStatsEnabled, Storage, SubmitEvent, Touch, TouchEvent, UIEvent, ValidityState, URL, type CustomElementConstructor, type CustomElementDefinition, type DOMRectInit, type DOMStringMap, type RuntimeStatsSnapshot, };
13
- export type { AddEventListenerOptions, ClipboardEventInit, CustomEventInit, EventInit, EventListenerCallback, EventListenerOptions, EventModifierInit, FocusEventInit, InputEventInit, KeyboardEventInit, MouseEventInit, PointerEventInit, PopStateEventInit, SubmitEventInit, TouchEventInit, TouchInit, UIEventInit } from "./events.js";
14
- export type { IntersectionObserverCallback, IntersectionObserverInit, ResizeObserverCallback, ResizeObserverEntry } from "./observers.js";
15
- export type NodeId = number;
6
+ import { AddEventListenerOptions, ClipboardEventInit, CustomEventInit, EventInit, EventModifierInit, FocusEventInit, InputEventInit, KeyboardEventInit, MouseEventInit, PointerEventInit, PopStateEventInit, SubmitEventInit, TouchEventInit, TouchInit, UIEventInit } from "./event-init.js";
7
+ import { ClipboardEvent, CustomEvent, Event, EventListenerCallback, EventListenerOptions, EventTarget, FocusEvent, InputEvent, KeyboardEvent, MediaQueryList, MediaQueryListEvent, MouseEvent, PointerEvent, PopStateEvent, SubmitEvent, Touch, TouchEvent, UIEvent } from "./events.js";
8
+ import { DOMRect, DOMRectInit, DOMRectReadOnly, ValidityState } from "./geometry.js";
9
+ import { History } from "./history.js";
10
+ import { IntersectionObserver, IntersectionObserverCallback, IntersectionObserverEntry, IntersectionObserverInit, ResizeObserver, ResizeObserverCallback, ResizeObserverEntry } from "./observers.js";
11
+ import { RuntimeStatsSnapshot, getRuntimeStats, resetRuntimeStats, setRuntimeStatsEnabled } from "./stats.js";
12
+ import { NativeDocument } from "@native-dom/native-core";
13
+
14
+ //#region src/index.d.ts
15
+ type NodeId = number;
16
16
  type NodeInput = Node | string;
17
17
  type NodeFilterCallback = ((node: Node) => number) | {
18
- acceptNode(node: Node): number;
18
+ acceptNode(node: Node): number;
19
19
  };
20
20
  type TimerHandle = ReturnType<typeof globalThis.setTimeout>;
21
- export declare const NodeFilter: {
21
+ declare const NodeFilter: {
22
+ readonly FILTER_ACCEPT: 1;
23
+ readonly FILTER_REJECT: 2;
24
+ readonly FILTER_SKIP: 3;
25
+ readonly SHOW_ALL: 4294967295;
26
+ readonly SHOW_ELEMENT: 1;
27
+ readonly SHOW_ATTRIBUTE: 2;
28
+ readonly SHOW_TEXT: 4;
29
+ readonly SHOW_CDATA_SECTION: 8;
30
+ readonly SHOW_ENTITY_REFERENCE: 16;
31
+ readonly SHOW_ENTITY: 32;
32
+ readonly SHOW_PROCESSING_INSTRUCTION: 64;
33
+ readonly SHOW_COMMENT: 128;
34
+ readonly SHOW_DOCUMENT: 256;
35
+ readonly SHOW_DOCUMENT_TYPE: 512;
36
+ readonly SHOW_DOCUMENT_FRAGMENT: 1024;
37
+ readonly SHOW_NOTATION: 2048;
38
+ };
39
+ declare class Selection {
40
+ #private;
41
+ get rangeCount(): number;
42
+ get anchorNode(): Node | null;
43
+ get focusNode(): Node | null;
44
+ get isCollapsed(): boolean;
45
+ addRange(range: Range): void;
46
+ removeAllRanges(): void;
47
+ getRangeAt(index: number): Range;
48
+ toString(): string;
49
+ }
50
+ type FormDataEntryValue = string;
51
+ declare class FormData {
52
+ #private;
53
+ constructor(form?: HTMLElement);
54
+ append(name: string, value: FormDataEntryValue): void;
55
+ delete(name: string): void;
56
+ get(name: string): FormDataEntryValue | null;
57
+ getAll(name: string): FormDataEntryValue[];
58
+ has(name: string): boolean;
59
+ set(name: string, value: FormDataEntryValue): void;
60
+ forEach(callback: (value: FormDataEntryValue, key: string, formData: FormData) => void, thisArg?: unknown): void;
61
+ entries(): IterableIterator<[string, FormDataEntryValue]>;
62
+ keys(): IterableIterator<string>;
63
+ values(): IterableIterator<FormDataEntryValue>;
64
+ [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
65
+ }
66
+ declare class Range {
67
+ #private;
68
+ static readonly START_TO_START = 0;
69
+ static readonly START_TO_END = 1;
70
+ static readonly END_TO_END = 2;
71
+ static readonly END_TO_START = 3;
72
+ readonly START_TO_START = 0;
73
+ readonly START_TO_END = 1;
74
+ readonly END_TO_END = 2;
75
+ readonly END_TO_START = 3;
76
+ startContainer: Node;
77
+ startOffset: number;
78
+ endContainer: Node;
79
+ endOffset: number;
80
+ constructor(document: Document);
81
+ get collapsed(): boolean;
82
+ get commonAncestorContainer(): Node;
83
+ setStart(node: Node, offset: number): void;
84
+ setEnd(node: Node, offset: number): void;
85
+ setStartBefore(node: Node): void;
86
+ setStartAfter(node: Node): void;
87
+ setEndBefore(node: Node): void;
88
+ setEndAfter(node: Node): void;
89
+ selectNode(node: Node): void;
90
+ selectNodeContents(node: Node): void;
91
+ collapse(toStart?: boolean): void;
92
+ cloneRange(): Range;
93
+ cloneContents(): DocumentFragment;
94
+ deleteContents(): void;
95
+ insertNode(node: Node): void;
96
+ createContextualFragment(html: string): DocumentFragment;
97
+ detach(): void;
98
+ toString(): string;
99
+ }
100
+ declare class Window extends EventTarget {
101
+ #private;
102
+ readonly document: Document;
103
+ readonly Window: typeof Window;
104
+ readonly window: this;
105
+ readonly self: this;
106
+ readonly top: this;
107
+ readonly parent: this;
108
+ readonly location: Location;
109
+ readonly history: History;
110
+ readonly Image: new (width?: number, height?: number) => HTMLImageElement;
111
+ readonly navigator: Navigator;
112
+ readonly screen: Screen;
113
+ readonly localStorage: Storage;
114
+ readonly sessionStorage: Storage;
115
+ readonly URL: typeof URL;
116
+ readonly URLSearchParams: {
117
+ new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
118
+ prototype: URLSearchParams;
119
+ };
120
+ readonly Blob: {
121
+ new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
122
+ prototype: Blob;
123
+ };
124
+ readonly File: {
125
+ new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
126
+ prototype: File;
127
+ };
128
+ readonly Headers: {
129
+ new (init?: HeadersInit): Headers;
130
+ prototype: Headers;
131
+ };
132
+ readonly Request: {
133
+ new (input: RequestInfo | globalThis.URL, init?: RequestInit): Request;
134
+ prototype: Request;
135
+ };
136
+ readonly Response: {
137
+ new (body?: BodyInit | null, init?: ResponseInit): Response;
138
+ prototype: Response;
139
+ error(): Response;
140
+ json(data: any, init?: ResponseInit): Response;
141
+ redirect(url: string | globalThis.URL, status?: number): Response;
142
+ };
143
+ readonly AbortController: {
144
+ new (): AbortController;
145
+ prototype: AbortController;
146
+ };
147
+ readonly fetch: typeof fetch;
148
+ readonly customElements: CustomElementRegistry;
149
+ readonly innerWidth = 1024;
150
+ readonly innerHeight = 768;
151
+ readonly outerWidth = 1024;
152
+ readonly outerHeight = 768;
153
+ readonly queueMicrotask: typeof queueMicrotask;
154
+ readonly devicePixelRatio = 1;
155
+ readonly FormData: typeof FormData;
156
+ readonly Storage: typeof Storage;
157
+ readonly Node: typeof Node;
158
+ readonly Element: typeof Element;
159
+ readonly HTMLElement: typeof HTMLElement;
160
+ readonly HTMLHtmlElement: typeof HTMLHtmlElement;
161
+ readonly HTMLBodyElement: typeof HTMLBodyElement;
162
+ readonly SVGElement: typeof SVGElement;
163
+ readonly MathMLElement: typeof MathMLElement;
164
+ readonly DocumentFragment: typeof DocumentFragment;
165
+ readonly ShadowRoot: typeof ShadowRoot;
166
+ readonly HTMLButtonElement: typeof HTMLButtonElement;
167
+ readonly HTMLCanvasElement: typeof HTMLCanvasElement;
168
+ readonly HTMLFormElement: typeof HTMLFormElement;
169
+ readonly HTMLIFrameElement: typeof HTMLElement;
170
+ readonly HTMLImageElement: typeof HTMLImageElement;
171
+ readonly HTMLInputElement: typeof HTMLInputElement;
172
+ readonly HTMLLinkElement: typeof HTMLLinkElement;
173
+ readonly HTMLOptionElement: typeof HTMLOptionElement;
174
+ readonly HTMLScriptElement: typeof HTMLScriptElement;
175
+ readonly HTMLSelectElement: typeof HTMLSelectElement;
176
+ readonly HTMLStyleElement: typeof HTMLStyleElement;
177
+ readonly HTMLTableCellElement: typeof HTMLTableCellElement;
178
+ readonly HTMLTableElement: typeof HTMLTableElement;
179
+ readonly HTMLTableRowElement: typeof HTMLTableRowElement;
180
+ readonly HTMLTableSectionElement: typeof HTMLTableSectionElement;
181
+ readonly HTMLTemplateElement: typeof HTMLTemplateElement;
182
+ readonly HTMLTextAreaElement: typeof HTMLTextAreaElement;
183
+ readonly HTMLCollection: typeof NativeNodeList;
184
+ readonly NodeList: typeof NativeNodeList;
185
+ readonly Document: typeof Document;
186
+ readonly Text: typeof Text;
187
+ readonly Comment: typeof Comment;
188
+ readonly DOMParser: typeof DOMParser;
189
+ readonly DocumentType: typeof DocumentType;
190
+ readonly DOMRect: typeof DOMRect;
191
+ readonly DOMRectReadOnly: typeof DOMRectReadOnly;
192
+ readonly EventTarget: typeof EventTarget;
193
+ readonly Event: typeof Event;
194
+ readonly CustomEvent: typeof CustomEvent;
195
+ readonly UIEvent: typeof UIEvent;
196
+ readonly MouseEvent: typeof MouseEvent;
197
+ readonly PointerEvent: typeof PointerEvent;
198
+ readonly KeyboardEvent: typeof KeyboardEvent;
199
+ readonly InputEvent: typeof InputEvent;
200
+ readonly FocusEvent: typeof FocusEvent;
201
+ readonly SubmitEvent: typeof SubmitEvent;
202
+ readonly PopStateEvent: typeof PopStateEvent;
203
+ readonly ClipboardEvent: typeof ClipboardEvent;
204
+ readonly Touch: typeof Touch;
205
+ readonly TouchEvent: typeof TouchEvent;
206
+ readonly ResizeObserver: typeof ResizeObserver;
207
+ readonly IntersectionObserver: typeof IntersectionObserver;
208
+ readonly IntersectionObserverEntry: typeof IntersectionObserverEntry;
209
+ readonly Selection: typeof Selection;
210
+ readonly DataTransfer: typeof DataTransfer;
211
+ readonly DataTransferItemList: typeof DataTransferItemList;
212
+ readonly FileList: typeof FileList;
213
+ readonly MutationObserver: typeof MutationObserver;
214
+ readonly DOMException: typeof DOMException;
215
+ readonly Range: typeof Range;
216
+ readonly TreeWalker: typeof TreeWalker;
217
+ readonly NodeIterator: typeof NodeIterator;
218
+ readonly ValidityState: typeof ValidityState;
219
+ readonly NodeFilter: {
22
220
  readonly FILTER_ACCEPT: 1;
23
221
  readonly FILTER_REJECT: 2;
24
222
  readonly FILTER_SKIP: 3;
@@ -35,790 +233,589 @@ export declare const NodeFilter: {
35
233
  readonly SHOW_DOCUMENT_TYPE: 512;
36
234
  readonly SHOW_DOCUMENT_FRAGMENT: 1024;
37
235
  readonly SHOW_NOTATION: 2048;
38
- };
39
- export declare class Selection {
40
- #private;
41
- get rangeCount(): number;
42
- get anchorNode(): Node | null;
43
- get focusNode(): Node | null;
44
- get isCollapsed(): boolean;
45
- addRange(range: Range): void;
46
- removeAllRanges(): void;
47
- getRangeAt(index: number): Range;
48
- toString(): string;
49
- }
50
- export type FormDataEntryValue = string;
51
- export declare class FormData {
52
- #private;
53
- constructor(form?: HTMLElement);
54
- append(name: string, value: FormDataEntryValue): void;
55
- delete(name: string): void;
56
- get(name: string): FormDataEntryValue | null;
57
- getAll(name: string): FormDataEntryValue[];
58
- has(name: string): boolean;
59
- set(name: string, value: FormDataEntryValue): void;
60
- forEach(callback: (value: FormDataEntryValue, key: string, formData: FormData) => void, thisArg?: unknown): void;
61
- entries(): IterableIterator<[string, FormDataEntryValue]>;
62
- keys(): IterableIterator<string>;
63
- values(): IterableIterator<FormDataEntryValue>;
64
- [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
65
- }
66
- export declare class Range {
67
- #private;
68
- static readonly START_TO_START = 0;
69
- static readonly START_TO_END = 1;
70
- static readonly END_TO_END = 2;
71
- static readonly END_TO_START = 3;
72
- readonly START_TO_START = 0;
73
- readonly START_TO_END = 1;
74
- readonly END_TO_END = 2;
75
- readonly END_TO_START = 3;
76
- startContainer: Node;
77
- startOffset: number;
78
- endContainer: Node;
79
- endOffset: number;
80
- constructor(document: Document);
81
- get collapsed(): boolean;
82
- get commonAncestorContainer(): Node;
83
- setStart(node: Node, offset: number): void;
84
- setEnd(node: Node, offset: number): void;
85
- setStartBefore(node: Node): void;
86
- setStartAfter(node: Node): void;
87
- setEndBefore(node: Node): void;
88
- setEndAfter(node: Node): void;
89
- selectNode(node: Node): void;
90
- selectNodeContents(node: Node): void;
91
- collapse(toStart?: boolean): void;
92
- cloneRange(): Range;
93
- cloneContents(): DocumentFragment;
94
- deleteContents(): void;
95
- insertNode(node: Node): void;
96
- createContextualFragment(html: string): DocumentFragment;
97
- detach(): void;
98
- toString(): string;
99
- }
100
- export declare class Window extends EventTarget {
101
- #private;
102
- readonly document: Document;
103
- readonly Window: typeof Window;
104
- readonly window: this;
105
- readonly self: this;
106
- readonly top: this;
107
- readonly parent: this;
108
- readonly location: Location;
109
- readonly history: History;
110
- readonly Image: new (width?: number, height?: number) => HTMLImageElement;
111
- readonly navigator: Navigator;
112
- readonly screen: Screen;
113
- readonly localStorage: Storage;
114
- readonly sessionStorage: Storage;
115
- readonly URL: typeof URL;
116
- readonly URLSearchParams: {
117
- new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
118
- prototype: URLSearchParams;
119
- };
120
- readonly Blob: {
121
- new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
122
- prototype: Blob;
123
- };
124
- readonly File: {
125
- new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
126
- prototype: File;
127
- };
128
- readonly Headers: {
129
- new (init?: HeadersInit): Headers;
130
- prototype: Headers;
131
- };
132
- readonly Request: {
133
- new (input: RequestInfo | globalThis.URL, init?: RequestInit): Request;
134
- prototype: Request;
135
- };
136
- readonly Response: {
137
- new (body?: BodyInit | null, init?: ResponseInit): Response;
138
- prototype: Response;
139
- error(): Response;
140
- json(data: any, init?: ResponseInit): Response;
141
- redirect(url: string | globalThis.URL, status?: number): Response;
142
- };
143
- readonly AbortController: {
144
- new (): AbortController;
145
- prototype: AbortController;
146
- };
147
- readonly fetch: typeof fetch;
148
- readonly customElements: CustomElementRegistry;
149
- readonly innerWidth = 1024;
150
- readonly innerHeight = 768;
151
- readonly outerWidth = 1024;
152
- readonly outerHeight = 768;
153
- readonly queueMicrotask: typeof queueMicrotask;
154
- readonly devicePixelRatio = 1;
155
- readonly FormData: typeof FormData;
156
- readonly Storage: typeof Storage;
157
- readonly Node: typeof Node;
158
- readonly Element: typeof Element;
159
- readonly HTMLElement: typeof HTMLElement;
160
- readonly HTMLHtmlElement: typeof HTMLHtmlElement;
161
- readonly HTMLBodyElement: typeof HTMLBodyElement;
162
- readonly SVGElement: typeof SVGElement;
163
- readonly MathMLElement: typeof MathMLElement;
164
- readonly DocumentFragment: typeof DocumentFragment;
165
- readonly ShadowRoot: typeof ShadowRoot;
166
- readonly HTMLButtonElement: typeof HTMLButtonElement;
167
- readonly HTMLCanvasElement: typeof HTMLCanvasElement;
168
- readonly HTMLFormElement: typeof HTMLFormElement;
169
- readonly HTMLIFrameElement: typeof HTMLElement;
170
- readonly HTMLImageElement: typeof HTMLImageElement;
171
- readonly HTMLInputElement: typeof HTMLInputElement;
172
- readonly HTMLLinkElement: typeof HTMLLinkElement;
173
- readonly HTMLOptionElement: typeof HTMLOptionElement;
174
- readonly HTMLScriptElement: typeof HTMLScriptElement;
175
- readonly HTMLSelectElement: typeof HTMLSelectElement;
176
- readonly HTMLStyleElement: typeof HTMLStyleElement;
177
- readonly HTMLTableCellElement: typeof HTMLTableCellElement;
178
- readonly HTMLTableElement: typeof HTMLTableElement;
179
- readonly HTMLTableRowElement: typeof HTMLTableRowElement;
180
- readonly HTMLTableSectionElement: typeof HTMLTableSectionElement;
181
- readonly HTMLTemplateElement: typeof HTMLTemplateElement;
182
- readonly HTMLTextAreaElement: typeof HTMLTextAreaElement;
183
- readonly HTMLCollection: typeof NativeNodeList;
184
- readonly NodeList: typeof NativeNodeList;
185
- readonly Document: typeof Document;
186
- readonly Text: typeof Text;
187
- readonly Comment: typeof Comment;
188
- readonly DOMParser: typeof DOMParser;
189
- readonly DocumentType: typeof DocumentType;
190
- readonly DOMRect: typeof DOMRect;
191
- readonly DOMRectReadOnly: typeof DOMRectReadOnly;
192
- readonly EventTarget: typeof EventTarget;
193
- readonly Event: typeof Event;
194
- readonly CustomEvent: typeof CustomEvent;
195
- readonly UIEvent: typeof UIEvent;
196
- readonly MouseEvent: typeof MouseEvent;
197
- readonly PointerEvent: typeof PointerEvent;
198
- readonly KeyboardEvent: typeof KeyboardEvent;
199
- readonly InputEvent: typeof InputEvent;
200
- readonly FocusEvent: typeof FocusEvent;
201
- readonly SubmitEvent: typeof SubmitEvent;
202
- readonly PopStateEvent: typeof PopStateEvent;
203
- readonly ClipboardEvent: typeof ClipboardEvent;
204
- readonly Touch: typeof Touch;
205
- readonly TouchEvent: typeof TouchEvent;
206
- readonly ResizeObserver: typeof ResizeObserver;
207
- readonly IntersectionObserver: typeof IntersectionObserver;
208
- readonly IntersectionObserverEntry: typeof IntersectionObserverEntry;
209
- readonly Selection: typeof Selection;
210
- readonly DataTransfer: typeof DataTransfer;
211
- readonly DataTransferItemList: typeof DataTransferItemList;
212
- readonly FileList: typeof FileList;
213
- readonly MutationObserver: typeof MutationObserver;
214
- readonly DOMException: typeof DOMException;
215
- readonly Range: typeof Range;
216
- readonly TreeWalker: typeof TreeWalker;
217
- readonly NodeIterator: typeof NodeIterator;
218
- readonly ValidityState: typeof ValidityState;
219
- readonly NodeFilter: {
220
- readonly FILTER_ACCEPT: 1;
221
- readonly FILTER_REJECT: 2;
222
- readonly FILTER_SKIP: 3;
223
- readonly SHOW_ALL: 4294967295;
224
- readonly SHOW_ELEMENT: 1;
225
- readonly SHOW_ATTRIBUTE: 2;
226
- readonly SHOW_TEXT: 4;
227
- readonly SHOW_CDATA_SECTION: 8;
228
- readonly SHOW_ENTITY_REFERENCE: 16;
229
- readonly SHOW_ENTITY: 32;
230
- readonly SHOW_PROCESSING_INSTRUCTION: 64;
231
- readonly SHOW_COMMENT: 128;
232
- readonly SHOW_DOCUMENT: 256;
233
- readonly SHOW_DOCUMENT_TYPE: 512;
234
- readonly SHOW_DOCUMENT_FRAGMENT: 1024;
235
- readonly SHOW_NOTATION: 2048;
236
- };
237
- readonly Location: typeof Location;
238
- readonly History: typeof History;
239
- readonly Navigator: typeof Navigator;
240
- readonly Screen: typeof Screen;
241
- readonly ScreenOrientation: typeof ScreenOrientation;
242
- readonly MediaQueryList: typeof MediaQueryList;
243
- readonly MediaQueryListEvent: typeof MediaQueryListEvent;
244
- readonly NamedNodeMap: typeof NamedNodeMap;
245
- readonly XMLSerializer: typeof XMLSerializer;
246
- readonly CSSStyleDeclaration: typeof CSSStyleDeclaration;
247
- readonly CSSRule: typeof CSSRule;
248
- readonly CSSStyleRule: typeof CSSStyleRule;
249
- readonly CSSMediaRule: typeof CSSMediaRule;
250
- readonly CSSStyleSheet: typeof CSSStyleSheet;
251
- readonly CustomElementRegistry: typeof CustomElementRegistry;
252
- constructor(html?: string, url?: string);
253
- setTimeout(handler: TimerHandler, timeout?: number, ...arguments_: unknown[]): TimerHandle;
254
- clearTimeout(handle?: TimerHandle): void;
255
- setInterval(handler: TimerHandler, timeout?: number, ...arguments_: unknown[]): TimerHandle;
256
- clearInterval(handle?: TimerHandle): void;
257
- getComputedStyle(element: Element, _pseudoElement?: string): CSSStyleDeclaration;
258
- requestAnimationFrame(callback: (time: number) => void): number;
259
- cancelAnimationFrame(id: number): void;
260
- matchMedia(query: string): MediaQueryList;
261
- getSelection(): Selection;
262
- close(): void;
263
- cancelAsync(): void;
264
- }
265
- export declare class Node extends EventTarget {
266
- #private;
267
- static readonly ELEMENT_NODE = 1;
268
- static readonly TEXT_NODE = 3;
269
- static readonly COMMENT_NODE = 8;
270
- static readonly DOCUMENT_NODE = 9;
271
- static readonly DOCUMENT_TYPE_NODE = 10;
272
- static readonly DOCUMENT_FRAGMENT_NODE = 11;
273
- static readonly DOCUMENT_POSITION_DISCONNECTED = 1;
274
- static readonly DOCUMENT_POSITION_PRECEDING = 2;
275
- static readonly DOCUMENT_POSITION_FOLLOWING = 4;
276
- static readonly DOCUMENT_POSITION_CONTAINS = 8;
277
- static readonly DOCUMENT_POSITION_CONTAINED_BY = 16;
278
- static readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32;
279
- readonly ELEMENT_NODE: typeof Node.ELEMENT_NODE;
280
- readonly TEXT_NODE: typeof Node.TEXT_NODE;
281
- readonly COMMENT_NODE: typeof Node.COMMENT_NODE;
282
- readonly DOCUMENT_NODE: typeof Node.DOCUMENT_NODE;
283
- readonly DOCUMENT_TYPE_NODE: typeof Node.DOCUMENT_TYPE_NODE;
284
- readonly DOCUMENT_FRAGMENT_NODE: typeof Node.DOCUMENT_FRAGMENT_NODE;
285
- readonly DOCUMENT_POSITION_DISCONNECTED: typeof Node.DOCUMENT_POSITION_DISCONNECTED;
286
- readonly DOCUMENT_POSITION_PRECEDING: typeof Node.DOCUMENT_POSITION_PRECEDING;
287
- readonly DOCUMENT_POSITION_FOLLOWING: typeof Node.DOCUMENT_POSITION_FOLLOWING;
288
- readonly DOCUMENT_POSITION_CONTAINS: typeof Node.DOCUMENT_POSITION_CONTAINS;
289
- readonly DOCUMENT_POSITION_CONTAINED_BY: typeof Node.DOCUMENT_POSITION_CONTAINED_BY;
290
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: typeof Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
291
- protected readonly _document: Document;
292
- protected readonly _id: NodeId;
293
- constructor(document: Document, id: NodeId, nodeName?: string | null);
294
- get nodeName(): string;
295
- get nodeType(): number;
296
- get nodeValue(): string | null;
297
- set nodeValue(value: string | null);
298
- get textContent(): string;
299
- set textContent(value: string);
300
- get ownerDocument(): Document | null;
301
- get parentNode(): Node | null;
302
- get parentElement(): Element | null;
303
- get isConnected(): boolean;
304
- get firstChild(): Node | null;
305
- get lastChild(): Node | null;
306
- get nextSibling(): Node | null;
307
- get previousSibling(): Node | null;
308
- get previousElementSibling(): Element | null;
309
- get nextElementSibling(): Element | null;
310
- get childNodes(): NativeNodeList<Node>;
311
- hasChildNodes(): boolean;
312
- appendChild<T extends Node>(child: T): T;
313
- append(...nodes: NodeInput[]): void;
314
- prepend(...nodes: NodeInput[]): void;
315
- insertBefore<T extends Node>(child: T, referenceNode: Node | null): T;
316
- removeChild<T extends Node>(child: T): T;
317
- replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
318
- replaceChildren(...nodes: NodeInput[]): void;
319
- cloneNode(deep?: boolean): Node;
320
- contains(other: Node | null): boolean;
321
- getRootNode(): Node;
322
- isSameNode(other: Node | null): boolean;
323
- isEqualNode(other: Node | null): boolean;
324
- compareDocumentPosition(other: Node): number;
325
- normalize(): void;
326
- remove(): void;
327
- before(...nodes: NodeInput[]): void;
328
- after(...nodes: NodeInput[]): void;
329
- replaceWith(...nodes: NodeInput[]): void;
330
- _eventPath(): EventTarget[];
331
- get _nativeId(): NodeId;
332
- }
333
- export interface Attr {
334
- localName: string;
335
- name: string;
336
- value: string;
337
- }
338
- export declare class NamedNodeMap extends Array<Attr> {
339
- static get [Symbol.species](): ArrayConstructor;
340
- constructor(attributes?: Iterable<Attr>);
341
- item(index: number): Attr | null;
342
- getNamedItem(name: string): Attr | null;
343
- getNamedItemNS(_namespace: string | null, localName: string): Attr | null;
344
- }
345
- export type MutationRecordType = "attributes" | "characterData" | "childList";
346
- export interface MutationObserverInit {
347
- attributes?: boolean;
348
- attributeFilter?: string[];
349
- attributeOldValue?: boolean;
350
- characterData?: boolean;
351
- characterDataOldValue?: boolean;
352
- childList?: boolean;
353
- subtree?: boolean;
354
- }
355
- export declare class MutationRecord {
356
- readonly type: MutationRecordType;
357
- readonly target: Node;
358
- readonly addedNodes: readonly Node[];
359
- readonly removedNodes: readonly Node[];
360
- readonly attributeName: string | null;
361
- readonly oldValue: string | null;
362
- readonly previousSibling: Node | null;
363
- readonly nextSibling: Node | null;
364
- constructor(init: {
365
- type: MutationRecordType;
366
- target: Node;
367
- addedNodes: readonly Node[];
368
- removedNodes: readonly Node[];
369
- attributeName: string | null;
370
- oldValue: string | null;
371
- previousSibling?: Node | null;
372
- nextSibling?: Node | null;
373
- });
236
+ };
237
+ readonly Location: typeof Location;
238
+ readonly History: typeof History;
239
+ readonly Navigator: typeof Navigator;
240
+ readonly Screen: typeof Screen;
241
+ readonly ScreenOrientation: typeof ScreenOrientation;
242
+ readonly MediaQueryList: typeof MediaQueryList;
243
+ readonly MediaQueryListEvent: typeof MediaQueryListEvent;
244
+ readonly NamedNodeMap: typeof NamedNodeMap;
245
+ readonly XMLSerializer: typeof XMLSerializer;
246
+ readonly CSSStyleDeclaration: typeof CSSStyleDeclaration;
247
+ readonly CSSRule: typeof CSSRule;
248
+ readonly CSSStyleRule: typeof CSSStyleRule;
249
+ readonly CSSMediaRule: typeof CSSMediaRule;
250
+ readonly CSSStyleSheet: typeof CSSStyleSheet;
251
+ readonly CustomElementRegistry: typeof CustomElementRegistry;
252
+ constructor(html?: string, url?: string);
253
+ setTimeout(handler: TimerHandler, timeout?: number, ...arguments_: unknown[]): TimerHandle;
254
+ clearTimeout(handle?: TimerHandle): void;
255
+ setInterval(handler: TimerHandler, timeout?: number, ...arguments_: unknown[]): TimerHandle;
256
+ clearInterval(handle?: TimerHandle): void;
257
+ getComputedStyle(element: Element, _pseudoElement?: string): CSSStyleDeclaration;
258
+ requestAnimationFrame(callback: (time: number) => void): number;
259
+ cancelAnimationFrame(id: number): void;
260
+ matchMedia(query: string): MediaQueryList;
261
+ getSelection(): Selection;
262
+ close(): void;
263
+ cancelAsync(): void;
264
+ }
265
+ declare class Node extends EventTarget {
266
+ #private;
267
+ static readonly ELEMENT_NODE = 1;
268
+ static readonly TEXT_NODE = 3;
269
+ static readonly COMMENT_NODE = 8;
270
+ static readonly DOCUMENT_NODE = 9;
271
+ static readonly DOCUMENT_TYPE_NODE = 10;
272
+ static readonly DOCUMENT_FRAGMENT_NODE = 11;
273
+ static readonly DOCUMENT_POSITION_DISCONNECTED = 1;
274
+ static readonly DOCUMENT_POSITION_PRECEDING = 2;
275
+ static readonly DOCUMENT_POSITION_FOLLOWING = 4;
276
+ static readonly DOCUMENT_POSITION_CONTAINS = 8;
277
+ static readonly DOCUMENT_POSITION_CONTAINED_BY = 16;
278
+ static readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32;
279
+ readonly ELEMENT_NODE: typeof Node.ELEMENT_NODE;
280
+ readonly TEXT_NODE: typeof Node.TEXT_NODE;
281
+ readonly COMMENT_NODE: typeof Node.COMMENT_NODE;
282
+ readonly DOCUMENT_NODE: typeof Node.DOCUMENT_NODE;
283
+ readonly DOCUMENT_TYPE_NODE: typeof Node.DOCUMENT_TYPE_NODE;
284
+ readonly DOCUMENT_FRAGMENT_NODE: typeof Node.DOCUMENT_FRAGMENT_NODE;
285
+ readonly DOCUMENT_POSITION_DISCONNECTED: typeof Node.DOCUMENT_POSITION_DISCONNECTED;
286
+ readonly DOCUMENT_POSITION_PRECEDING: typeof Node.DOCUMENT_POSITION_PRECEDING;
287
+ readonly DOCUMENT_POSITION_FOLLOWING: typeof Node.DOCUMENT_POSITION_FOLLOWING;
288
+ readonly DOCUMENT_POSITION_CONTAINS: typeof Node.DOCUMENT_POSITION_CONTAINS;
289
+ readonly DOCUMENT_POSITION_CONTAINED_BY: typeof Node.DOCUMENT_POSITION_CONTAINED_BY;
290
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: typeof Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
291
+ protected readonly _document: Document;
292
+ protected readonly _id: NodeId;
293
+ constructor(document: Document, id: NodeId, nodeName?: string | null);
294
+ get nodeName(): string;
295
+ get nodeType(): number;
296
+ get nodeValue(): string | null;
297
+ set nodeValue(value: string | null);
298
+ get textContent(): string;
299
+ set textContent(value: string);
300
+ get ownerDocument(): Document | null;
301
+ get parentNode(): Node | null;
302
+ get parentElement(): Element | null;
303
+ get isConnected(): boolean;
304
+ get firstChild(): Node | null;
305
+ get lastChild(): Node | null;
306
+ get nextSibling(): Node | null;
307
+ get previousSibling(): Node | null;
308
+ get previousElementSibling(): Element | null;
309
+ get nextElementSibling(): Element | null;
310
+ get childNodes(): NativeNodeList<Node>;
311
+ hasChildNodes(): boolean;
312
+ appendChild<T extends Node>(child: T): T;
313
+ append(...nodes: NodeInput[]): void;
314
+ prepend(...nodes: NodeInput[]): void;
315
+ insertBefore<T extends Node>(child: T, referenceNode: Node | null): T;
316
+ removeChild<T extends Node>(child: T): T;
317
+ replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
318
+ replaceChildren(...nodes: NodeInput[]): void;
319
+ cloneNode(deep?: boolean): Node;
320
+ contains(other: Node | null): boolean;
321
+ getRootNode(): Node;
322
+ isSameNode(other: Node | null): boolean;
323
+ isEqualNode(other: Node | null): boolean;
324
+ compareDocumentPosition(other: Node): number;
325
+ normalize(): void;
326
+ remove(): void;
327
+ before(...nodes: NodeInput[]): void;
328
+ after(...nodes: NodeInput[]): void;
329
+ replaceWith(...nodes: NodeInput[]): void;
330
+ _eventPath(): EventTarget[];
331
+ get _nativeId(): NodeId;
332
+ }
333
+ interface Attr {
334
+ localName: string;
335
+ name: string;
336
+ value: string;
337
+ }
338
+ declare class NamedNodeMap extends Array<Attr> {
339
+ static get [Symbol.species](): ArrayConstructor;
340
+ constructor(attributes?: Iterable<Attr>);
341
+ item(index: number): Attr | null;
342
+ getNamedItem(name: string): Attr | null;
343
+ getNamedItemNS(_namespace: string | null, localName: string): Attr | null;
344
+ }
345
+ type MutationRecordType = "attributes" | "characterData" | "childList";
346
+ interface MutationObserverInit {
347
+ attributes?: boolean;
348
+ attributeFilter?: string[];
349
+ attributeOldValue?: boolean;
350
+ characterData?: boolean;
351
+ characterDataOldValue?: boolean;
352
+ childList?: boolean;
353
+ subtree?: boolean;
354
+ }
355
+ declare class MutationRecord {
356
+ readonly type: MutationRecordType;
357
+ readonly target: Node;
358
+ readonly addedNodes: readonly Node[];
359
+ readonly removedNodes: readonly Node[];
360
+ readonly attributeName: string | null;
361
+ readonly oldValue: string | null;
362
+ readonly previousSibling: Node | null;
363
+ readonly nextSibling: Node | null;
364
+ constructor(init: {
365
+ type: MutationRecordType;
366
+ target: Node;
367
+ addedNodes: readonly Node[];
368
+ removedNodes: readonly Node[];
369
+ attributeName: string | null;
370
+ oldValue: string | null;
371
+ previousSibling?: Node | null;
372
+ nextSibling?: Node | null;
373
+ });
374
374
  }
375
375
  type MutationCallback = (records: MutationRecord[], observer: MutationObserver) => void;
376
- export declare class MutationObserver {
377
- #private;
378
- constructor(callback: MutationCallback);
379
- observe(target: Node, options?: MutationObserverInit): void;
380
- disconnect(): void;
381
- takeRecords(): MutationRecord[];
382
- _enqueue(record: MutationRecord): void;
383
- }
384
- export declare class DOMImplementation {
385
- #private;
386
- constructor(document?: Document | null);
387
- createHTMLDocument(_title?: string): Document;
388
- createDocumentType(name: string, publicId?: string, systemId?: string): DocumentType;
389
- }
390
- export declare class DOMParser {
391
- parseFromString(markup: string, _type: string): Document;
392
- }
393
- export declare class XMLSerializer {
394
- serializeToString(node: Node): string;
395
- }
396
- export declare class Document extends Node {
397
- #private;
398
- readonly defaultView: Window;
399
- readonly implementation: DOMImplementation;
400
- _native: NativeDocumentBinding;
401
- constructor(defaultView: Window, html?: string);
402
- get documentElement(): Element;
403
- get doctype(): DocumentType | null;
404
- get head(): Element;
405
- get body(): HTMLElement;
406
- get URL(): string;
407
- get documentURI(): string;
408
- get characterSet(): string;
409
- get charset(): string;
410
- get inputEncoding(): string;
411
- get contentType(): string;
412
- get readyState(): string;
413
- get visibilityState(): string;
414
- get hidden(): boolean;
415
- get cookie(): string;
416
- set cookie(value: string);
417
- get styleSheets(): readonly CSSStyleSheet[];
418
- hasFocus(): boolean;
419
- get title(): string;
420
- set title(value: string);
421
- get ownerDocument(): null;
422
- get activeElement(): Element | null;
423
- querySelector(selector: string): Element | null;
424
- querySelectorAll(selector: string): NativeNodeList<Element>;
425
- getElementById(id: string): Element | null;
426
- createElement(localName: string): HTMLElement;
427
- createElementNS(namespaceURI: string | null, qualifiedName: string): Element;
428
- createTextNode(value: string): Text;
429
- createComment(value: string): Comment;
430
- createDocumentFragment(): DocumentFragment;
431
- createRange(): Range;
432
- createEvent(eventInterface: string): Event;
433
- getSelection(): Selection;
434
- createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null): TreeWalker;
435
- createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null): NodeIterator;
436
- importNode<T extends Node>(node: T, deep?: boolean): T;
437
- adoptNode<T extends Node>(node: T): T;
438
- getElementsByTagName(tagName: string): NativeNodeList<Element>;
439
- getElementsByClassName(classNames: string): NativeNodeList<Element>;
440
- getElementsByName(name: string): NativeNodeList<Element>;
441
- _setActiveElement(element: Element | null): void;
442
- _replaceWithHtml(html: string): void;
443
- _mutationVersion(): number;
444
- _documentNodeId(): NodeId;
445
- _storeWrapper(id: NodeId, node: Node): void;
446
- _hasCustomElementDefinitions(): boolean;
447
- _bumpMutationVersion(): void;
448
- _namespaceFor(id: NodeId): string;
449
- _querySelectorAll(rootId: NodeId, selector: string): readonly NodeId[];
450
- _querySelector(rootId: NodeId, selector: string): NodeId | null;
451
- _elementsByClassName(rootId: NodeId, classNames: string): readonly NodeId[];
452
- _matchesSelector(id: NodeId, selector: string): boolean;
453
- _closest(id: NodeId, selector: string): NodeId | null;
454
- _wrapCreatedHTMLElement(id: NodeId, nodeName: string): HTMLElement;
455
- _wrap(id: NodeId, knownNodeName?: string | null): Node;
456
- }
457
- export declare class Element extends Node {
458
- #private;
459
- get children(): NativeNodeList<Element>;
460
- get childElementCount(): number;
461
- get firstElementChild(): Element | null;
462
- get lastElementChild(): Element | null;
463
- get previousElementSibling(): Element | null;
464
- get nextElementSibling(): Element | null;
465
- get tagName(): string;
466
- get localName(): string;
467
- get namespaceURI(): string;
468
- get shadowRoot(): ShadowRoot | null;
469
- attachShadow(init: ShadowRootInit): ShadowRoot;
470
- get innerHTML(): string;
471
- set innerHTML(html: string);
472
- get outerHTML(): string;
473
- set outerHTML(html: string);
474
- get id(): string;
475
- set id(value: string);
476
- get className(): string;
477
- set className(value: string);
478
- get classList(): DOMTokenList;
479
- get dataset(): DOMStringMap;
480
- get style(): CSSStyleDeclaration;
481
- get clientWidth(): number;
482
- get clientHeight(): number;
483
- get scrollWidth(): number;
484
- get scrollHeight(): number;
485
- get offsetWidth(): number;
486
- get offsetHeight(): number;
487
- getBoundingClientRect(): DOMRect;
488
- getClientRects(): DOMRect[];
489
- setAttribute(name: string, value: string): void;
490
- getAttribute(name: string): string | null;
491
- getAttributeNode(name: string): Attr | null;
492
- hasAttribute(name: string): boolean;
493
- hasAttributes(): boolean;
494
- getAttributeNames(): string[];
495
- get attributes(): NamedNodeMap;
496
- matches(selector: string): boolean;
497
- scrollIntoView(_arg?: boolean | ScrollIntoViewOptions): void;
498
- removeAttribute(name: string): void;
499
- toggleAttribute(name: string, force?: boolean): boolean;
500
- querySelector(selector: string): Element | null;
501
- querySelectorAll(selector: string): NativeNodeList<Element>;
502
- closest(selector: string): Element | null;
503
- getElementsByTagName(tagName: string): NativeNodeList<Element>;
504
- getElementsByClassName(classNames: string): NativeNodeList<Element>;
505
- insertAdjacentElement(position: string, element: Element): Element | null;
506
- insertAdjacentHTML(position: string, html: string): void;
507
- insertAdjacentText(position: string, data: string): void;
508
- }
509
- export declare class SVGElement extends Element {
510
- }
511
- export declare class MathMLElement extends Element {
512
- }
513
- export declare class HTMLElement extends Element {
514
- #private;
515
- constructor(document?: Document, id?: NodeId, nodeName?: string | null);
516
- get innerText(): string;
517
- set innerText(value: string);
518
- get hidden(): boolean;
519
- set hidden(value: boolean);
520
- get type(): string;
521
- set type(value: string);
522
- get name(): string;
523
- set name(value: string);
524
- get placeholder(): string;
525
- set placeholder(value: string);
526
- get htmlFor(): string;
527
- set htmlFor(value: string);
528
- get value(): string;
529
- set value(value: string);
530
- get defaultValue(): string;
531
- set defaultValue(value: string);
532
- get checked(): boolean;
533
- set checked(value: boolean);
534
- get defaultChecked(): boolean;
535
- set defaultChecked(value: boolean);
536
- get readOnly(): boolean;
537
- set readOnly(value: boolean);
538
- get multiple(): boolean;
539
- set multiple(value: boolean);
540
- get selected(): boolean;
541
- set selected(value: boolean);
542
- get selectedIndex(): number;
543
- set selectedIndex(value: number);
544
- get options(): NativeNodeList<HTMLElement> | undefined;
545
- get text(): string;
546
- set text(value: string);
547
- get form(): HTMLElement | null;
548
- get elements(): NativeNodeList<HTMLElement> | undefined;
549
- get control(): HTMLElement | null;
550
- get labels(): NativeNodeList<HTMLElement> | undefined;
551
- get validity(): ValidityState | undefined;
552
- get validationMessage(): string;
553
- get willValidate(): boolean | undefined;
554
- setCustomValidity(message: string): void;
555
- checkValidity(): boolean;
556
- reportValidity(): boolean;
557
- click(): void;
558
- submit(): void;
559
- requestSubmit(): void;
560
- reset(): void;
561
- focus(): void;
562
- blur(): void;
563
- }
564
- export declare class HTMLButtonElement extends HTMLElement {
565
- get disabled(): boolean;
566
- set disabled(value: boolean);
567
- }
568
- export declare class HTMLCanvasElement extends HTMLElement {
569
- get width(): number;
570
- set width(value: number);
571
- get height(): number;
572
- set height(value: number);
573
- getContext(_contextId: string, ..._arguments_: unknown[]): null;
574
- toDataURL(_type?: string, ..._arguments_: unknown[]): string;
575
- }
576
- export declare class HTMLFormElement extends HTMLElement {
577
- }
578
- export declare class HTMLHtmlElement extends HTMLElement {
579
- }
580
- export declare class HTMLBodyElement extends HTMLElement {
581
- }
582
- export declare class HTMLImageElement extends HTMLElement {
583
- get alt(): string;
584
- set alt(value: string);
585
- get src(): string;
586
- set src(value: string);
587
- get currentSrc(): string;
588
- get srcset(): string;
589
- set srcset(value: string);
590
- get sizes(): string;
591
- set sizes(value: string);
592
- get width(): number;
593
- set width(value: number);
594
- get height(): number;
595
- set height(value: number);
596
- get naturalWidth(): number;
597
- get naturalHeight(): number;
598
- get complete(): boolean;
599
- get loading(): string;
600
- set loading(value: string);
601
- get decoding(): string;
602
- set decoding(value: string);
603
- get crossOrigin(): string | null;
604
- set crossOrigin(value: string | null);
605
- get referrerPolicy(): string;
606
- set referrerPolicy(value: string);
607
- }
608
- export declare class HTMLLinkElement extends HTMLElement {
609
- #private;
610
- get href(): string;
611
- set href(value: string);
612
- get rel(): string;
613
- set rel(value: string);
614
- get as(): string;
615
- set as(value: string);
616
- get type(): string;
617
- set type(value: string);
618
- get media(): string;
619
- set media(value: string);
620
- get crossOrigin(): string;
621
- set crossOrigin(value: string);
622
- get referrerPolicy(): string;
623
- set referrerPolicy(value: string);
624
- get disabled(): boolean | undefined;
625
- set disabled(value: boolean);
626
- get sheet(): CSSStyleSheet | null;
627
- }
628
- export declare class HTMLScriptElement extends HTMLElement {
629
- get src(): string;
630
- set src(value: string);
631
- get type(): string;
632
- set type(value: string);
633
- get charset(): string;
634
- set charset(value: string);
635
- get lang(): string;
636
- set lang(value: string);
637
- get async(): boolean;
638
- set async(value: boolean);
639
- get defer(): boolean;
640
- set defer(value: boolean);
641
- get noModule(): boolean;
642
- set noModule(value: boolean);
643
- get crossOrigin(): string;
644
- set crossOrigin(value: string);
645
- get integrity(): string;
646
- set integrity(value: string);
647
- get referrerPolicy(): string;
648
- set referrerPolicy(value: string);
649
- get text(): string;
650
- set text(value: string);
651
- }
652
- export declare class HTMLTableElement extends HTMLElement {
653
- #private;
654
- get caption(): HTMLElement | null;
655
- get tHead(): HTMLTableSectionElement | null;
656
- get tFoot(): HTMLTableSectionElement | null;
657
- get tBodies(): NativeNodeList<HTMLTableSectionElement>;
658
- get rows(): NativeNodeList<HTMLTableRowElement>;
659
- createTHead(): HTMLTableSectionElement;
660
- deleteTHead(): void;
661
- createTFoot(): HTMLTableSectionElement;
662
- deleteTFoot(): void;
663
- createTBody(): HTMLTableSectionElement;
664
- insertRow(index?: number): HTMLTableRowElement;
665
- deleteRow(index: number): void;
666
- }
667
- export declare class HTMLTableSectionElement extends HTMLElement {
668
- get rows(): NativeNodeList<HTMLTableRowElement>;
669
- insertRow(index?: number): HTMLTableRowElement;
670
- deleteRow(index: number): void;
671
- }
672
- export declare class HTMLTableRowElement extends HTMLElement {
673
- get cells(): NativeNodeList<HTMLTableCellElement>;
674
- get rowIndex(): number;
675
- get sectionRowIndex(): number;
676
- insertCell(index?: number): HTMLTableCellElement;
677
- deleteCell(index: number): void;
678
- }
679
- export declare class HTMLTableCellElement extends HTMLElement {
680
- get cellIndex(): number;
681
- get colSpan(): number;
682
- set colSpan(value: number);
683
- get rowSpan(): number;
684
- set rowSpan(value: number);
685
- }
686
- export declare class HTMLTemplateElement extends HTMLElement {
687
- #private;
688
- constructor(document: Document, id: NodeId, nodeName: string);
689
- get content(): DocumentFragment;
690
- get firstChild(): Node | null;
691
- get lastChild(): Node | null;
692
- get innerHTML(): string;
693
- set innerHTML(html: string);
694
- appendChild<T extends Node>(child: T): T;
695
- append(...nodes: NodeInput[]): void;
696
- prepend(...nodes: NodeInput[]): void;
697
- insertBefore<T extends Node>(child: T, referenceNode: Node | null): T;
698
- removeChild<T extends Node>(child: T): T;
699
- replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
700
- replaceChildren(...nodes: NodeInput[]): void;
701
- }
702
- export declare class HTMLInputElement extends HTMLElement {
703
- get accept(): string;
704
- set accept(value: string);
705
- get files(): readonly unknown[];
706
- get value(): string;
707
- set value(value: string);
708
- get checked(): boolean;
709
- set checked(value: boolean);
710
- get disabled(): boolean;
711
- set disabled(value: boolean);
712
- get multiple(): boolean;
713
- set multiple(value: boolean);
714
- get required(): boolean;
715
- set required(value: boolean);
716
- }
717
- export declare class HTMLOptionElement extends HTMLElement {
718
- get disabled(): boolean;
719
- set disabled(value: boolean);
720
- }
721
- export declare class HTMLSelectElement extends HTMLElement {
722
- get value(): string;
723
- set value(value: string);
724
- get disabled(): boolean;
725
- set disabled(value: boolean);
726
- get required(): boolean;
727
- set required(value: boolean);
728
- }
729
- export declare class HTMLStyleElement extends HTMLElement {
730
- #private;
731
- get disabled(): boolean;
732
- set disabled(value: boolean);
733
- get media(): string;
734
- set media(value: string);
735
- get type(): string;
736
- set type(value: string);
737
- get sheet(): CSSStyleSheet | null;
738
- }
739
- export declare class HTMLTextAreaElement extends HTMLElement {
740
- get disabled(): boolean;
741
- set disabled(value: boolean);
742
- get required(): boolean;
743
- set required(value: boolean);
744
- }
745
- export interface ShadowRootInit {
746
- delegatesFocus?: boolean;
747
- mode: "open" | "closed";
748
- }
749
- export interface ScrollIntoViewOptions {
750
- behavior?: "auto" | "instant" | "smooth";
751
- block?: "start" | "center" | "end" | "nearest";
752
- inline?: "start" | "center" | "end" | "nearest";
753
- }
754
- export declare class Text extends Node {
755
- constructor(document: Document, id: NodeId, nodeName?: string | null);
756
- constructor(data?: string);
757
- get data(): string;
758
- set data(value: string);
759
- }
760
- export declare class Comment extends Node {
761
- constructor(document: Document, id: NodeId, nodeName?: string | null);
762
- constructor(data?: string);
763
- get data(): string;
764
- set data(value: string);
765
- }
766
- export declare class DocumentType extends Node {
767
- constructor(document: Document, id: NodeId, nodeName?: string | null);
768
- get name(): string;
769
- get publicId(): string;
770
- get systemId(): string;
771
- get nodeType(): number;
772
- get nodeValue(): null;
773
- set nodeValue(_value: string | null);
774
- get textContent(): string;
775
- set textContent(_value: string);
776
- get outerHTML(): string;
777
- }
778
- export declare class DocumentFragment extends Node {
779
- constructor(document?: Document, id?: NodeId, nodeName?: string | null);
780
- get children(): NativeNodeList<Element>;
781
- get childElementCount(): number;
782
- get firstElementChild(): Element | null;
783
- get lastElementChild(): Element | null;
784
- get innerHTML(): string;
785
- set innerHTML(html: string);
786
- querySelector(selector: string): Element | null;
787
- querySelectorAll(selector: string): NativeNodeList<Element>;
788
- getElementById(id: string): Element | null;
789
- }
790
- export declare class ShadowRoot extends DocumentFragment {
791
- readonly delegatesFocus = false;
792
- readonly host: Element;
793
- readonly mode: "open" | "closed";
794
- constructor(document: Document, id: NodeId, host: Element, mode: "open" | "closed");
795
- }
796
- export declare class TreeWalker {
797
- #private;
798
- currentNode: Node;
799
- readonly root: Node;
800
- readonly whatToShow: number;
801
- readonly filter: NodeFilterCallback | null;
802
- constructor(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null);
803
- nextNode(): Node | null;
804
- previousNode(): Node | null;
805
- }
806
- export declare class NodeIterator {
807
- #private;
808
- readonly root: Node;
809
- readonly whatToShow: number;
810
- readonly filter: NodeFilterCallback | null;
811
- constructor(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null);
812
- nextNode(): Node | null;
813
- previousNode(): Node | null;
814
- detach(): void;
815
- }
816
- export declare class NativeNodeList<T extends Node = Node> {
817
- #private;
818
- constructor(document: Document, ids: readonly NodeId[]);
819
- get length(): number;
820
- item(index: number): T | null;
821
- forEach(callback: (value: T, index: number, list: NativeNodeList<T>) => void): void;
822
- [Symbol.iterator](): Iterator<T>;
823
- }
376
+ declare class MutationObserver {
377
+ #private;
378
+ constructor(callback: MutationCallback);
379
+ observe(target: Node, options?: MutationObserverInit): void;
380
+ disconnect(): void;
381
+ takeRecords(): MutationRecord[];
382
+ _enqueue(record: MutationRecord): void;
383
+ }
384
+ declare class DOMImplementation {
385
+ #private;
386
+ constructor(document?: Document | null);
387
+ createHTMLDocument(_title?: string): Document;
388
+ createDocumentType(name: string, publicId?: string, systemId?: string): DocumentType;
389
+ }
390
+ declare class DOMParser {
391
+ parseFromString(markup: string, _type: string): Document;
392
+ }
393
+ declare class XMLSerializer {
394
+ serializeToString(node: Node): string;
395
+ }
396
+ declare class Document extends Node {
397
+ #private;
398
+ readonly defaultView: Window;
399
+ readonly implementation: DOMImplementation;
400
+ _native: NativeDocument;
401
+ constructor(defaultView: Window, html?: string);
402
+ get documentElement(): Element;
403
+ get doctype(): DocumentType | null;
404
+ get head(): Element;
405
+ get body(): HTMLElement;
406
+ get URL(): string;
407
+ get documentURI(): string;
408
+ get characterSet(): string;
409
+ get charset(): string;
410
+ get inputEncoding(): string;
411
+ get contentType(): string;
412
+ get readyState(): string;
413
+ get visibilityState(): string;
414
+ get hidden(): boolean;
415
+ get cookie(): string;
416
+ set cookie(value: string);
417
+ get styleSheets(): readonly CSSStyleSheet[];
418
+ hasFocus(): boolean;
419
+ get title(): string;
420
+ set title(value: string);
421
+ get ownerDocument(): null;
422
+ get activeElement(): Element | null;
423
+ querySelector(selector: string): Element | null;
424
+ querySelectorAll(selector: string): NativeNodeList<Element>;
425
+ getElementById(id: string): Element | null;
426
+ createElement(localName: string): HTMLElement;
427
+ createElementNS(namespaceURI: string | null, qualifiedName: string): Element;
428
+ createTextNode(value: string): Text;
429
+ createComment(value: string): Comment;
430
+ createDocumentFragment(): DocumentFragment;
431
+ createRange(): Range;
432
+ createEvent(eventInterface: string): Event;
433
+ getSelection(): Selection;
434
+ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null): TreeWalker;
435
+ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null): NodeIterator;
436
+ importNode<T extends Node>(node: T, deep?: boolean): T;
437
+ adoptNode<T extends Node>(node: T): T;
438
+ getElementsByTagName(tagName: string): NativeNodeList<Element>;
439
+ getElementsByClassName(classNames: string): NativeNodeList<Element>;
440
+ getElementsByName(name: string): NativeNodeList<Element>;
441
+ _setActiveElement(element: Element | null): void;
442
+ _replaceWithHtml(html: string): void;
443
+ _mutationVersion(): number;
444
+ _documentNodeId(): NodeId;
445
+ _storeWrapper(id: NodeId, node: Node): void;
446
+ _hasCustomElementDefinitions(): boolean;
447
+ _bumpMutationVersion(): void;
448
+ _namespaceFor(id: NodeId): string;
449
+ _querySelectorAll(rootId: NodeId, selector: string): readonly NodeId[];
450
+ _querySelector(rootId: NodeId, selector: string): NodeId | null;
451
+ _elementsByClassName(rootId: NodeId, classNames: string): readonly NodeId[];
452
+ _matchesSelector(id: NodeId, selector: string): boolean;
453
+ _closest(id: NodeId, selector: string): NodeId | null;
454
+ _wrapCreatedHTMLElement(id: NodeId, nodeName: string): HTMLElement;
455
+ _wrap(id: NodeId, knownNodeName?: string | null): Node;
456
+ }
457
+ declare class Element extends Node {
458
+ #private;
459
+ get children(): NativeNodeList<Element>;
460
+ get childElementCount(): number;
461
+ get firstElementChild(): Element | null;
462
+ get lastElementChild(): Element | null;
463
+ get previousElementSibling(): Element | null;
464
+ get nextElementSibling(): Element | null;
465
+ get tagName(): string;
466
+ get localName(): string;
467
+ get namespaceURI(): string;
468
+ get shadowRoot(): ShadowRoot | null;
469
+ attachShadow(init: ShadowRootInit): ShadowRoot;
470
+ get innerHTML(): string;
471
+ set innerHTML(html: string);
472
+ get outerHTML(): string;
473
+ set outerHTML(html: string);
474
+ get id(): string;
475
+ set id(value: string);
476
+ get className(): string;
477
+ set className(value: string);
478
+ get classList(): DOMTokenList;
479
+ get dataset(): DOMStringMap;
480
+ get style(): CSSStyleDeclaration;
481
+ get clientWidth(): number;
482
+ get clientHeight(): number;
483
+ get scrollWidth(): number;
484
+ get scrollHeight(): number;
485
+ get offsetWidth(): number;
486
+ get offsetHeight(): number;
487
+ getBoundingClientRect(): DOMRect;
488
+ getClientRects(): DOMRect[];
489
+ setAttribute(name: string, value: string): void;
490
+ getAttribute(name: string): string | null;
491
+ getAttributeNode(name: string): Attr | null;
492
+ hasAttribute(name: string): boolean;
493
+ hasAttributes(): boolean;
494
+ getAttributeNames(): string[];
495
+ get attributes(): NamedNodeMap;
496
+ matches(selector: string): boolean;
497
+ scrollIntoView(_arg?: boolean | ScrollIntoViewOptions): void;
498
+ removeAttribute(name: string): void;
499
+ toggleAttribute(name: string, force?: boolean): boolean;
500
+ querySelector(selector: string): Element | null;
501
+ querySelectorAll(selector: string): NativeNodeList<Element>;
502
+ closest(selector: string): Element | null;
503
+ getElementsByTagName(tagName: string): NativeNodeList<Element>;
504
+ getElementsByClassName(classNames: string): NativeNodeList<Element>;
505
+ insertAdjacentElement(position: string, element: Element): Element | null;
506
+ insertAdjacentHTML(position: string, html: string): void;
507
+ insertAdjacentText(position: string, data: string): void;
508
+ }
509
+ declare class SVGElement extends Element {}
510
+ declare class MathMLElement extends Element {}
511
+ declare class HTMLElement extends Element {
512
+ #private;
513
+ constructor(document?: Document, id?: NodeId, nodeName?: string | null);
514
+ get innerText(): string;
515
+ set innerText(value: string);
516
+ get hidden(): boolean;
517
+ set hidden(value: boolean);
518
+ get type(): string;
519
+ set type(value: string);
520
+ get name(): string;
521
+ set name(value: string);
522
+ get placeholder(): string;
523
+ set placeholder(value: string);
524
+ get htmlFor(): string;
525
+ set htmlFor(value: string);
526
+ get value(): string;
527
+ set value(value: string);
528
+ get defaultValue(): string;
529
+ set defaultValue(value: string);
530
+ get checked(): boolean;
531
+ set checked(value: boolean);
532
+ get defaultChecked(): boolean;
533
+ set defaultChecked(value: boolean);
534
+ get readOnly(): boolean;
535
+ set readOnly(value: boolean);
536
+ get multiple(): boolean;
537
+ set multiple(value: boolean);
538
+ get selected(): boolean;
539
+ set selected(value: boolean);
540
+ get selectedIndex(): number;
541
+ set selectedIndex(value: number);
542
+ get options(): NativeNodeList<HTMLElement> | undefined;
543
+ get text(): string;
544
+ set text(value: string);
545
+ get form(): HTMLElement | null;
546
+ get elements(): NativeNodeList<HTMLElement> | undefined;
547
+ get control(): HTMLElement | null;
548
+ get labels(): NativeNodeList<HTMLElement> | undefined;
549
+ get validity(): ValidityState | undefined;
550
+ get validationMessage(): string;
551
+ get willValidate(): boolean | undefined;
552
+ setCustomValidity(message: string): void;
553
+ checkValidity(): boolean;
554
+ reportValidity(): boolean;
555
+ click(): void;
556
+ submit(): void;
557
+ requestSubmit(): void;
558
+ reset(): void;
559
+ focus(): void;
560
+ blur(): void;
561
+ }
562
+ declare class HTMLButtonElement extends HTMLElement {
563
+ get disabled(): boolean;
564
+ set disabled(value: boolean);
565
+ }
566
+ declare class HTMLCanvasElement extends HTMLElement {
567
+ get width(): number;
568
+ set width(value: number);
569
+ get height(): number;
570
+ set height(value: number);
571
+ getContext(_contextId: string, ..._arguments_: unknown[]): null;
572
+ toDataURL(_type?: string, ..._arguments_: unknown[]): string;
573
+ }
574
+ declare class HTMLFormElement extends HTMLElement {}
575
+ declare class HTMLHtmlElement extends HTMLElement {}
576
+ declare class HTMLBodyElement extends HTMLElement {}
577
+ declare class HTMLImageElement extends HTMLElement {
578
+ get alt(): string;
579
+ set alt(value: string);
580
+ get src(): string;
581
+ set src(value: string);
582
+ get currentSrc(): string;
583
+ get srcset(): string;
584
+ set srcset(value: string);
585
+ get sizes(): string;
586
+ set sizes(value: string);
587
+ get width(): number;
588
+ set width(value: number);
589
+ get height(): number;
590
+ set height(value: number);
591
+ get naturalWidth(): number;
592
+ get naturalHeight(): number;
593
+ get complete(): boolean;
594
+ get loading(): string;
595
+ set loading(value: string);
596
+ get decoding(): string;
597
+ set decoding(value: string);
598
+ get crossOrigin(): string | null;
599
+ set crossOrigin(value: string | null);
600
+ get referrerPolicy(): string;
601
+ set referrerPolicy(value: string);
602
+ }
603
+ declare class HTMLLinkElement extends HTMLElement {
604
+ #private;
605
+ get href(): string;
606
+ set href(value: string);
607
+ get rel(): string;
608
+ set rel(value: string);
609
+ get as(): string;
610
+ set as(value: string);
611
+ get type(): string;
612
+ set type(value: string);
613
+ get media(): string;
614
+ set media(value: string);
615
+ get crossOrigin(): string;
616
+ set crossOrigin(value: string);
617
+ get referrerPolicy(): string;
618
+ set referrerPolicy(value: string);
619
+ get disabled(): boolean | undefined;
620
+ set disabled(value: boolean);
621
+ get sheet(): CSSStyleSheet | null;
622
+ }
623
+ declare class HTMLScriptElement extends HTMLElement {
624
+ get src(): string;
625
+ set src(value: string);
626
+ get type(): string;
627
+ set type(value: string);
628
+ get charset(): string;
629
+ set charset(value: string);
630
+ get lang(): string;
631
+ set lang(value: string);
632
+ get async(): boolean;
633
+ set async(value: boolean);
634
+ get defer(): boolean;
635
+ set defer(value: boolean);
636
+ get noModule(): boolean;
637
+ set noModule(value: boolean);
638
+ get crossOrigin(): string;
639
+ set crossOrigin(value: string);
640
+ get integrity(): string;
641
+ set integrity(value: string);
642
+ get referrerPolicy(): string;
643
+ set referrerPolicy(value: string);
644
+ get text(): string;
645
+ set text(value: string);
646
+ }
647
+ declare class HTMLTableElement extends HTMLElement {
648
+ #private;
649
+ get caption(): HTMLElement | null;
650
+ get tHead(): HTMLTableSectionElement | null;
651
+ get tFoot(): HTMLTableSectionElement | null;
652
+ get tBodies(): NativeNodeList<HTMLTableSectionElement>;
653
+ get rows(): NativeNodeList<HTMLTableRowElement>;
654
+ createTHead(): HTMLTableSectionElement;
655
+ deleteTHead(): void;
656
+ createTFoot(): HTMLTableSectionElement;
657
+ deleteTFoot(): void;
658
+ createTBody(): HTMLTableSectionElement;
659
+ insertRow(index?: number): HTMLTableRowElement;
660
+ deleteRow(index: number): void;
661
+ }
662
+ declare class HTMLTableSectionElement extends HTMLElement {
663
+ get rows(): NativeNodeList<HTMLTableRowElement>;
664
+ insertRow(index?: number): HTMLTableRowElement;
665
+ deleteRow(index: number): void;
666
+ }
667
+ declare class HTMLTableRowElement extends HTMLElement {
668
+ get cells(): NativeNodeList<HTMLTableCellElement>;
669
+ get rowIndex(): number;
670
+ get sectionRowIndex(): number;
671
+ insertCell(index?: number): HTMLTableCellElement;
672
+ deleteCell(index: number): void;
673
+ }
674
+ declare class HTMLTableCellElement extends HTMLElement {
675
+ get cellIndex(): number;
676
+ get colSpan(): number;
677
+ set colSpan(value: number);
678
+ get rowSpan(): number;
679
+ set rowSpan(value: number);
680
+ }
681
+ declare class HTMLTemplateElement extends HTMLElement {
682
+ #private;
683
+ constructor(document: Document, id: NodeId, nodeName: string);
684
+ get content(): DocumentFragment;
685
+ get firstChild(): Node | null;
686
+ get lastChild(): Node | null;
687
+ get innerHTML(): string;
688
+ set innerHTML(html: string);
689
+ appendChild<T extends Node>(child: T): T;
690
+ append(...nodes: NodeInput[]): void;
691
+ prepend(...nodes: NodeInput[]): void;
692
+ insertBefore<T extends Node>(child: T, referenceNode: Node | null): T;
693
+ removeChild<T extends Node>(child: T): T;
694
+ replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
695
+ replaceChildren(...nodes: NodeInput[]): void;
696
+ }
697
+ declare class HTMLInputElement extends HTMLElement {
698
+ get accept(): string;
699
+ set accept(value: string);
700
+ get files(): readonly unknown[];
701
+ get value(): string;
702
+ set value(value: string);
703
+ get checked(): boolean;
704
+ set checked(value: boolean);
705
+ get disabled(): boolean;
706
+ set disabled(value: boolean);
707
+ get multiple(): boolean;
708
+ set multiple(value: boolean);
709
+ get required(): boolean;
710
+ set required(value: boolean);
711
+ }
712
+ declare class HTMLOptionElement extends HTMLElement {
713
+ get disabled(): boolean;
714
+ set disabled(value: boolean);
715
+ }
716
+ declare class HTMLSelectElement extends HTMLElement {
717
+ get value(): string;
718
+ set value(value: string);
719
+ get disabled(): boolean;
720
+ set disabled(value: boolean);
721
+ get required(): boolean;
722
+ set required(value: boolean);
723
+ }
724
+ declare class HTMLStyleElement extends HTMLElement {
725
+ #private;
726
+ get disabled(): boolean;
727
+ set disabled(value: boolean);
728
+ get media(): string;
729
+ set media(value: string);
730
+ get type(): string;
731
+ set type(value: string);
732
+ get sheet(): CSSStyleSheet | null;
733
+ }
734
+ declare class HTMLTextAreaElement extends HTMLElement {
735
+ get disabled(): boolean;
736
+ set disabled(value: boolean);
737
+ get required(): boolean;
738
+ set required(value: boolean);
739
+ }
740
+ interface ShadowRootInit {
741
+ delegatesFocus?: boolean;
742
+ mode: "open" | "closed";
743
+ }
744
+ interface ScrollIntoViewOptions {
745
+ behavior?: "auto" | "instant" | "smooth";
746
+ block?: "start" | "center" | "end" | "nearest";
747
+ inline?: "start" | "center" | "end" | "nearest";
748
+ }
749
+ declare class Text extends Node {
750
+ constructor(document: Document, id: NodeId, nodeName?: string | null);
751
+ constructor(data?: string);
752
+ get data(): string;
753
+ set data(value: string);
754
+ }
755
+ declare class Comment extends Node {
756
+ constructor(document: Document, id: NodeId, nodeName?: string | null);
757
+ constructor(data?: string);
758
+ get data(): string;
759
+ set data(value: string);
760
+ }
761
+ declare class DocumentType extends Node {
762
+ constructor(document: Document, id: NodeId, nodeName?: string | null);
763
+ get name(): string;
764
+ get publicId(): string;
765
+ get systemId(): string;
766
+ get nodeType(): number;
767
+ get nodeValue(): null;
768
+ set nodeValue(_value: string | null);
769
+ get textContent(): string;
770
+ set textContent(_value: string);
771
+ get outerHTML(): string;
772
+ }
773
+ declare class DocumentFragment extends Node {
774
+ constructor(document?: Document, id?: NodeId, nodeName?: string | null);
775
+ get children(): NativeNodeList<Element>;
776
+ get childElementCount(): number;
777
+ get firstElementChild(): Element | null;
778
+ get lastElementChild(): Element | null;
779
+ get innerHTML(): string;
780
+ set innerHTML(html: string);
781
+ querySelector(selector: string): Element | null;
782
+ querySelectorAll(selector: string): NativeNodeList<Element>;
783
+ getElementById(id: string): Element | null;
784
+ }
785
+ declare class ShadowRoot extends DocumentFragment {
786
+ readonly delegatesFocus = false;
787
+ readonly host: Element;
788
+ readonly mode: "open" | "closed";
789
+ constructor(document: Document, id: NodeId, host: Element, mode: "open" | "closed");
790
+ }
791
+ declare class TreeWalker {
792
+ #private;
793
+ currentNode: Node;
794
+ readonly root: Node;
795
+ readonly whatToShow: number;
796
+ readonly filter: NodeFilterCallback | null;
797
+ constructor(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null);
798
+ nextNode(): Node | null;
799
+ previousNode(): Node | null;
800
+ }
801
+ declare class NodeIterator {
802
+ #private;
803
+ readonly root: Node;
804
+ readonly whatToShow: number;
805
+ readonly filter: NodeFilterCallback | null;
806
+ constructor(root: Node, whatToShow?: number, filter?: NodeFilterCallback | null);
807
+ nextNode(): Node | null;
808
+ previousNode(): Node | null;
809
+ detach(): void;
810
+ }
811
+ declare class NativeNodeList<T extends Node = Node> {
812
+ #private;
813
+ constructor(document: Document, ids: readonly NodeId[]);
814
+ get length(): number;
815
+ item(index: number): T | null;
816
+ forEach(callback: (value: T, index: number, list: NativeNodeList<T>) => void): void;
817
+ [Symbol.iterator](): Iterator<T>;
818
+ }
819
+ //#endregion
820
+ export { type AddEventListenerOptions, Attr, CSSMediaRule, CSSRule, CSSStyleDeclaration, CSSStyleRule, CSSStyleSheet, ClipboardEvent, type ClipboardEventInit, Comment, type CustomElementConstructor, type CustomElementDefinition, CustomElementRegistry, CustomEvent, type CustomEventInit, DOMException, DOMImplementation, DOMParser, DOMRect, type DOMRectInit, DOMRectReadOnly, type DOMStringMap, DOMTokenList, DataTransfer, DataTransferItemList, Document, DocumentFragment, DocumentType, Element, Event, type EventInit, type EventListenerCallback, type EventListenerOptions, type EventModifierInit, EventTarget, FileList, FocusEvent, type FocusEventInit, FormData, FormDataEntryValue, HTMLBodyElement, HTMLButtonElement, HTMLCanvasElement, HTMLElement, HTMLFormElement, HTMLHtmlElement, HTMLImageElement, HTMLInputElement, HTMLLinkElement, HTMLOptionElement, HTMLScriptElement, HTMLSelectElement, HTMLStyleElement, HTMLTableCellElement, HTMLTableElement, HTMLTableRowElement, HTMLTableSectionElement, HTMLTemplateElement, HTMLTextAreaElement, History, InputEvent, type InputEventInit, IntersectionObserver, type IntersectionObserverCallback, IntersectionObserverEntry, type IntersectionObserverInit, KeyboardEvent, type KeyboardEventInit, Location, MathMLElement, MediaQueryList, MediaQueryListEvent, MouseEvent, type MouseEventInit, MutationObserver, MutationObserverInit, MutationRecord, MutationRecordType, NamedNodeMap, NativeNodeList, Navigator, Node, NodeFilter, NodeId, NodeIterator, PointerEvent, type PointerEventInit, PopStateEvent, type PopStateEventInit, Range, ResizeObserver, type ResizeObserverCallback, type ResizeObserverEntry, type RuntimeStatsSnapshot, SVGElement, Screen, ScreenOrientation, ScrollIntoViewOptions, Selection, ShadowRoot, ShadowRootInit, Storage, SubmitEvent, type SubmitEventInit, Text, Touch, TouchEvent, type TouchEventInit, type TouchInit, TreeWalker, UIEvent, type UIEventInit, URL, ValidityState, Window, XMLSerializer, getRuntimeStats, resetRuntimeStats, setRuntimeStatsEnabled };
824
821
  //# sourceMappingURL=index.d.ts.map