@typescript-deploys/pr-build 4.7.0-pr-48538-10 → 4.7.0-pr-48581-7

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.
package/lib/lib.dom.d.ts CHANGED
@@ -721,6 +721,19 @@ interface LockOptions {
721
721
  steal?: boolean;
722
722
  }
723
723
 
724
+ interface MIDIConnectionEventInit extends EventInit {
725
+ port?: MIDIPort;
726
+ }
727
+
728
+ interface MIDIMessageEventInit extends EventInit {
729
+ data?: Uint8Array;
730
+ }
731
+
732
+ interface MIDIOptions {
733
+ software?: boolean;
734
+ sysex?: boolean;
735
+ }
736
+
724
737
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
725
738
  configuration?: MediaDecodingConfiguration;
726
739
  }
@@ -951,6 +964,11 @@ interface MutationObserverInit {
951
964
  subtree?: boolean;
952
965
  }
953
966
 
967
+ interface NavigationPreloadState {
968
+ enabled?: boolean;
969
+ headerValue?: string;
970
+ }
971
+
954
972
  interface NotificationAction {
955
973
  action: string;
956
974
  icon?: string;
@@ -1263,6 +1281,35 @@ interface RTCDtlsFingerprint {
1263
1281
  value?: string;
1264
1282
  }
1265
1283
 
1284
+ interface RTCEncodedAudioFrameMetadata {
1285
+ contributingSources?: number[];
1286
+ synchronizationSource?: number;
1287
+ }
1288
+
1289
+ interface RTCEncodedVideoFrameMetadata {
1290
+ contributingSources?: number[];
1291
+ dependencies?: number[];
1292
+ frameId?: number;
1293
+ height?: number;
1294
+ spatialIndex?: number;
1295
+ synchronizationSource?: number;
1296
+ temporalIndex?: number;
1297
+ width?: number;
1298
+ }
1299
+
1300
+ interface RTCErrorEventInit extends EventInit {
1301
+ error: RTCError;
1302
+ }
1303
+
1304
+ interface RTCErrorInit {
1305
+ errorDetail: RTCErrorDetailType;
1306
+ httpRequestStatusCode?: number;
1307
+ receivedAlert?: number;
1308
+ sctpCauseCode?: number;
1309
+ sdpLineNumber?: number;
1310
+ sentAlert?: number;
1311
+ }
1312
+
1266
1313
  interface RTCIceCandidateInit {
1267
1314
  candidate?: string;
1268
1315
  sdpMLineIndex?: number | null;
@@ -1768,6 +1815,13 @@ interface UnderlyingSource<R = any> {
1768
1815
  type?: undefined;
1769
1816
  }
1770
1817
 
1818
+ interface VideoColorSpaceInit {
1819
+ fullRange?: boolean;
1820
+ matrix?: VideoMatrixCoefficients;
1821
+ primaries?: VideoColorPrimaries;
1822
+ transfer?: VideoTransferCharacteristics;
1823
+ }
1824
+
1771
1825
  interface VideoConfiguration {
1772
1826
  bitrate: number;
1773
1827
  colorGamut?: ColorGamut;
@@ -1780,6 +1834,19 @@ interface VideoConfiguration {
1780
1834
  width: number;
1781
1835
  }
1782
1836
 
1837
+ interface VideoFrameMetadata {
1838
+ captureTime?: DOMHighResTimeStamp;
1839
+ expectedDisplayTime: DOMHighResTimeStamp;
1840
+ height: number;
1841
+ mediaTime: number;
1842
+ presentationTime: DOMHighResTimeStamp;
1843
+ presentedFrames: number;
1844
+ processingDuration?: number;
1845
+ receiveTime?: DOMHighResTimeStamp;
1846
+ rtpTimestamp?: number;
1847
+ width: number;
1848
+ }
1849
+
1783
1850
  interface WaveShaperOptions extends AudioNodeOptions {
1784
1851
  curve?: number[] | Float32Array;
1785
1852
  oversample?: OverSampleType;
@@ -1914,6 +1981,8 @@ interface AbortSignal extends EventTarget {
1914
1981
  /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
1915
1982
  readonly aborted: boolean;
1916
1983
  onabort: ((this: AbortSignal, ev: Event) => any) | null;
1984
+ readonly reason: any;
1985
+ throwIfAborted(): void;
1917
1986
  addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1918
1987
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1919
1988
  removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -2409,7 +2478,7 @@ interface Blob {
2409
2478
  readonly type: string;
2410
2479
  arrayBuffer(): Promise<ArrayBuffer>;
2411
2480
  slice(start?: number, end?: number, contentType?: string): Blob;
2412
- stream(): ReadableStream;
2481
+ stream(): ReadableStream<Uint8Array>;
2413
2482
  text(): Promise<string>;
2414
2483
  }
2415
2484
 
@@ -2784,6 +2853,7 @@ interface CSSStyleDeclaration {
2784
2853
  columns: string;
2785
2854
  contain: string;
2786
2855
  content: string;
2856
+ contentVisibility: string;
2787
2857
  counterIncrement: string;
2788
2858
  counterReset: string;
2789
2859
  counterSet: string;
@@ -2819,7 +2889,6 @@ interface CSSStyleDeclaration {
2819
2889
  fontStyle: string;
2820
2890
  fontSynthesis: string;
2821
2891
  fontVariant: string;
2822
- /** @deprecated */
2823
2892
  fontVariantAlternates: string;
2824
2893
  fontVariantCaps: string;
2825
2894
  fontVariantEastAsian: string;
@@ -2893,6 +2962,14 @@ interface CSSStyleDeclaration {
2893
2962
  markerMid: string;
2894
2963
  markerStart: string;
2895
2964
  mask: string;
2965
+ maskClip: string;
2966
+ maskComposite: string;
2967
+ maskImage: string;
2968
+ maskMode: string;
2969
+ maskOrigin: string;
2970
+ maskPosition: string;
2971
+ maskRepeat: string;
2972
+ maskSize: string;
2896
2973
  maskType: string;
2897
2974
  maxBlockSize: string;
2898
2975
  maxHeight: string;
@@ -2906,7 +2983,6 @@ interface CSSStyleDeclaration {
2906
2983
  objectFit: string;
2907
2984
  objectPosition: string;
2908
2985
  offset: string;
2909
- offsetAnchor: string;
2910
2986
  offsetDistance: string;
2911
2987
  offsetPath: string;
2912
2988
  offsetRotate: string;
@@ -2951,6 +3027,7 @@ interface CSSStyleDeclaration {
2951
3027
  placeSelf: string;
2952
3028
  pointerEvents: string;
2953
3029
  position: string;
3030
+ printColorAdjust: string;
2954
3031
  quotes: string;
2955
3032
  resize: string;
2956
3033
  right: string;
@@ -3251,13 +3328,13 @@ declare var CSSTransition: {
3251
3328
  * Available only in secure contexts.
3252
3329
  */
3253
3330
  interface Cache {
3254
- add(request: RequestInfo): Promise<void>;
3331
+ add(request: RequestInfo | URL): Promise<void>;
3255
3332
  addAll(requests: RequestInfo[]): Promise<void>;
3256
- delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
3257
- keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
3258
- match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
3259
- matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
3260
- put(request: RequestInfo, response: Response): Promise<void>;
3333
+ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
3334
+ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
3335
+ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
3336
+ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
3337
+ put(request: RequestInfo | URL, response: Response): Promise<void>;
3261
3338
  }
3262
3339
 
3263
3340
  declare var Cache: {
@@ -3273,7 +3350,7 @@ interface CacheStorage {
3273
3350
  delete(cacheName: string): Promise<boolean>;
3274
3351
  has(cacheName: string): Promise<boolean>;
3275
3352
  keys(): Promise<string[]>;
3276
- match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
3353
+ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
3277
3354
  open(cacheName: string): Promise<Cache>;
3278
3355
  }
3279
3356
 
@@ -3538,6 +3615,7 @@ declare var ClipboardEvent: {
3538
3615
  new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
3539
3616
  };
3540
3617
 
3618
+ /** Available only in secure contexts. */
3541
3619
  interface ClipboardItem {
3542
3620
  readonly types: ReadonlyArray<string>;
3543
3621
  getType(type: string): Promise<Blob>;
@@ -3545,7 +3623,7 @@ interface ClipboardItem {
3545
3623
 
3546
3624
  declare var ClipboardItem: {
3547
3625
  prototype: ClipboardItem;
3548
- new(items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>, options?: ClipboardItemOptions): ClipboardItem;
3626
+ new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
3549
3627
  };
3550
3628
 
3551
3629
  /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
@@ -4215,6 +4293,7 @@ declare var DeviceOrientationEvent: {
4215
4293
  };
4216
4294
 
4217
4295
  interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
4296
+ "DOMContentLoaded": Event;
4218
4297
  "fullscreenchange": Event;
4219
4298
  "fullscreenerror": Event;
4220
4299
  "pointerlockchange": Event;
@@ -4432,6 +4511,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4432
4511
  createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
4433
4512
  createEvent(eventInterface: "DragEvent"): DragEvent;
4434
4513
  createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
4514
+ createEvent(eventInterface: "Event"): Event;
4515
+ createEvent(eventInterface: "Events"): Event;
4435
4516
  createEvent(eventInterface: "FocusEvent"): FocusEvent;
4436
4517
  createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
4437
4518
  createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
@@ -4440,6 +4521,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4440
4521
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
4441
4522
  createEvent(eventInterface: "InputEvent"): InputEvent;
4442
4523
  createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
4524
+ createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
4525
+ createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
4443
4526
  createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
4444
4527
  createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
4445
4528
  createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -4460,6 +4543,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4460
4543
  createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
4461
4544
  createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
4462
4545
  createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
4546
+ createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
4463
4547
  createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
4464
4548
  createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
4465
4549
  createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
@@ -4891,8 +4975,20 @@ interface ElementContentEditable {
4891
4975
  }
4892
4976
 
4893
4977
  interface ElementInternals extends ARIAMixin {
4978
+ /** Returns the form owner of internals's target element. */
4979
+ readonly form: HTMLFormElement | null;
4980
+ /** Returns a NodeList of all the label elements that internals's target element is associated with. */
4981
+ readonly labels: NodeList;
4894
4982
  /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
4895
4983
  readonly shadowRoot: ShadowRoot | null;
4984
+ /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
4985
+ readonly willValidate: boolean;
4986
+ /**
4987
+ * Sets both the state and submission value of internals's target element to value.
4988
+ *
4989
+ * If value is null, the element won't participate in form submission.
4990
+ */
4991
+ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
4896
4992
  }
4897
4993
 
4898
4994
  declare var ElementInternals: {
@@ -4966,6 +5062,15 @@ declare var Event: {
4966
5062
  readonly NONE: number;
4967
5063
  };
4968
5064
 
5065
+ interface EventCounts {
5066
+ forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
5067
+ }
5068
+
5069
+ declare var EventCounts: {
5070
+ prototype: EventCounts;
5071
+ new(): EventCounts;
5072
+ };
5073
+
4969
5074
  interface EventListener {
4970
5075
  (evt: Event): void;
4971
5076
  }
@@ -6159,14 +6264,29 @@ declare var HTMLDetailsElement: {
6159
6264
  new(): HTMLDetailsElement;
6160
6265
  };
6161
6266
 
6162
- /** @deprecated this is not available in most browsers */
6163
6267
  interface HTMLDialogElement extends HTMLElement {
6268
+ open: boolean;
6269
+ returnValue: string;
6270
+ /**
6271
+ * Closes the dialog element.
6272
+ *
6273
+ * The argument, if provided, provides a return value.
6274
+ */
6275
+ close(returnValue?: string): void;
6276
+ /** Displays the dialog element. */
6277
+ show(): void;
6278
+ showModal(): void;
6164
6279
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6165
6280
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6166
6281
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
6167
6282
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
6168
6283
  }
6169
6284
 
6285
+ declare var HTMLDialogElement: {
6286
+ prototype: HTMLDialogElement;
6287
+ new(): HTMLDialogElement;
6288
+ };
6289
+
6170
6290
  /** @deprecated */
6171
6291
  interface HTMLDirectoryElement extends HTMLElement {
6172
6292
  /** @deprecated */
@@ -7614,6 +7734,7 @@ interface HTMLScriptElement extends HTMLElement {
7614
7734
  declare var HTMLScriptElement: {
7615
7735
  prototype: HTMLScriptElement;
7616
7736
  new(): HTMLScriptElement;
7737
+ supports(type: string): boolean;
7617
7738
  };
7618
7739
 
7619
7740
  /** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
@@ -7745,6 +7866,8 @@ declare var HTMLSpanElement: {
7745
7866
 
7746
7867
  /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
7747
7868
  interface HTMLStyleElement extends HTMLElement, LinkStyle {
7869
+ /** Enables or disables the style sheet. */
7870
+ disabled: boolean;
7748
7871
  /** Sets or retrieves the media type. */
7749
7872
  media: string;
7750
7873
  /**
@@ -8251,8 +8374,10 @@ interface HTMLVideoElement extends HTMLMediaElement {
8251
8374
  readonly videoWidth: number;
8252
8375
  /** Gets or sets the width of the video element. */
8253
8376
  width: number;
8377
+ cancelVideoFrameCallback(handle: number): void;
8254
8378
  getVideoPlaybackQuality(): VideoPlaybackQuality;
8255
8379
  requestPictureInPicture(): Promise<PictureInPictureWindow>;
8380
+ requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
8256
8381
  addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8257
8382
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
8258
8383
  removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8759,6 +8884,7 @@ declare var ImageBitmapRenderingContext: {
8759
8884
 
8760
8885
  /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
8761
8886
  interface ImageData {
8887
+ readonly colorSpace: PredefinedColorSpace;
8762
8888
  /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
8763
8889
  readonly data: Uint8ClampedArray;
8764
8890
  /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
@@ -8977,6 +9103,126 @@ declare var LockManager: {
8977
9103
  new(): LockManager;
8978
9104
  };
8979
9105
 
9106
+ interface MIDIAccessEventMap {
9107
+ "statechange": Event;
9108
+ }
9109
+
9110
+ /** Available only in secure contexts. */
9111
+ interface MIDIAccess extends EventTarget {
9112
+ readonly inputs: MIDIInputMap;
9113
+ onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
9114
+ readonly outputs: MIDIOutputMap;
9115
+ readonly sysexEnabled: boolean;
9116
+ addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9117
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9118
+ removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9119
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9120
+ }
9121
+
9122
+ declare var MIDIAccess: {
9123
+ prototype: MIDIAccess;
9124
+ new(): MIDIAccess;
9125
+ };
9126
+
9127
+ /** Available only in secure contexts. */
9128
+ interface MIDIConnectionEvent extends Event {
9129
+ readonly port: MIDIPort;
9130
+ }
9131
+
9132
+ declare var MIDIConnectionEvent: {
9133
+ prototype: MIDIConnectionEvent;
9134
+ new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
9135
+ };
9136
+
9137
+ interface MIDIInputEventMap extends MIDIPortEventMap {
9138
+ "midimessage": Event;
9139
+ }
9140
+
9141
+ /** Available only in secure contexts. */
9142
+ interface MIDIInput extends MIDIPort {
9143
+ onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
9144
+ addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9145
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9146
+ removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9147
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9148
+ }
9149
+
9150
+ declare var MIDIInput: {
9151
+ prototype: MIDIInput;
9152
+ new(): MIDIInput;
9153
+ };
9154
+
9155
+ /** Available only in secure contexts. */
9156
+ interface MIDIInputMap {
9157
+ forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
9158
+ }
9159
+
9160
+ declare var MIDIInputMap: {
9161
+ prototype: MIDIInputMap;
9162
+ new(): MIDIInputMap;
9163
+ };
9164
+
9165
+ /** Available only in secure contexts. */
9166
+ interface MIDIMessageEvent extends Event {
9167
+ readonly data: Uint8Array;
9168
+ }
9169
+
9170
+ declare var MIDIMessageEvent: {
9171
+ prototype: MIDIMessageEvent;
9172
+ new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
9173
+ };
9174
+
9175
+ /** Available only in secure contexts. */
9176
+ interface MIDIOutput extends MIDIPort {
9177
+ send(data: number[], timestamp?: DOMHighResTimeStamp): void;
9178
+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9179
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9180
+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9181
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9182
+ }
9183
+
9184
+ declare var MIDIOutput: {
9185
+ prototype: MIDIOutput;
9186
+ new(): MIDIOutput;
9187
+ };
9188
+
9189
+ /** Available only in secure contexts. */
9190
+ interface MIDIOutputMap {
9191
+ forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
9192
+ }
9193
+
9194
+ declare var MIDIOutputMap: {
9195
+ prototype: MIDIOutputMap;
9196
+ new(): MIDIOutputMap;
9197
+ };
9198
+
9199
+ interface MIDIPortEventMap {
9200
+ "statechange": Event;
9201
+ }
9202
+
9203
+ /** Available only in secure contexts. */
9204
+ interface MIDIPort extends EventTarget {
9205
+ readonly connection: MIDIPortConnectionState;
9206
+ readonly id: string;
9207
+ readonly manufacturer: string | null;
9208
+ readonly name: string | null;
9209
+ onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
9210
+ readonly state: MIDIPortDeviceState;
9211
+ readonly type: MIDIPortType;
9212
+ readonly version: string | null;
9213
+ close(): Promise<MIDIPort>;
9214
+ open(): Promise<MIDIPort>;
9215
+ addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9216
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9217
+ removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9218
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9219
+ }
9220
+
9221
+ declare var MIDIPort: {
9222
+ prototype: MIDIPort;
9223
+ new(): MIDIPort;
9224
+ };
9225
+
8980
9226
  interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
8981
9227
  }
8982
9228
 
@@ -9665,8 +9911,21 @@ declare var NamedNodeMap: {
9665
9911
  new(): NamedNodeMap;
9666
9912
  };
9667
9913
 
9914
+ /** Available only in secure contexts. */
9915
+ interface NavigationPreloadManager {
9916
+ disable(): Promise<void>;
9917
+ enable(): Promise<void>;
9918
+ getState(): Promise<NavigationPreloadState>;
9919
+ setHeaderValue(value: string): Promise<void>;
9920
+ }
9921
+
9922
+ declare var NavigationPreloadManager: {
9923
+ prototype: NavigationPreloadManager;
9924
+ new(): NavigationPreloadManager;
9925
+ };
9926
+
9668
9927
  /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
9669
- interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9928
+ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9670
9929
  /** Available only in secure contexts. */
9671
9930
  readonly clipboard: Clipboard;
9672
9931
  /** Available only in secure contexts. */
@@ -9685,6 +9944,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9685
9944
  canShare(data?: ShareData): boolean;
9686
9945
  getGamepads(): (Gamepad | null)[];
9687
9946
  /** Available only in secure contexts. */
9947
+ requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9948
+ /** Available only in secure contexts. */
9688
9949
  requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9689
9950
  sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
9690
9951
  /** Available only in secure contexts. */
@@ -9738,6 +9999,11 @@ interface NavigatorLanguage {
9738
9999
  readonly languages: ReadonlyArray<string>;
9739
10000
  }
9740
10001
 
10002
+ /** Available only in secure contexts. */
10003
+ interface NavigatorLocks {
10004
+ readonly locks: LockManager;
10005
+ }
10006
+
9741
10007
  interface NavigatorNetworkInformation {
9742
10008
  readonly connection: NetworkInformation;
9743
10009
  }
@@ -9749,6 +10015,7 @@ interface NavigatorOnLine {
9749
10015
  interface NavigatorPlugins {
9750
10016
  /** @deprecated */
9751
10017
  readonly mimeTypes: MimeTypeArray;
10018
+ readonly pdfViewerEnabled: boolean;
9752
10019
  /** @deprecated */
9753
10020
  readonly plugins: PluginArray;
9754
10021
  /** @deprecated */
@@ -10256,6 +10523,7 @@ interface PerformanceEventMap {
10256
10523
 
10257
10524
  /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
10258
10525
  interface Performance extends EventTarget {
10526
+ readonly eventCounts: EventCounts;
10259
10527
  /** @deprecated */
10260
10528
  readonly navigation: PerformanceNavigation;
10261
10529
  onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
@@ -10367,7 +10635,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
10367
10635
  readonly loadEventEnd: DOMHighResTimeStamp;
10368
10636
  readonly loadEventStart: DOMHighResTimeStamp;
10369
10637
  readonly redirectCount: number;
10370
- readonly type: NavigationType;
10638
+ readonly type: NavigationTimingType;
10371
10639
  readonly unloadEventEnd: DOMHighResTimeStamp;
10372
10640
  readonly unloadEventStart: DOMHighResTimeStamp;
10373
10641
  toJSON(): any;
@@ -10790,6 +11058,7 @@ declare var RTCDTMFToneChangeEvent: {
10790
11058
  interface RTCDataChannelEventMap {
10791
11059
  "bufferedamountlow": Event;
10792
11060
  "close": Event;
11061
+ "closing": Event;
10793
11062
  "error": Event;
10794
11063
  "message": MessageEvent;
10795
11064
  "open": Event;
@@ -10806,6 +11075,7 @@ interface RTCDataChannel extends EventTarget {
10806
11075
  readonly negotiated: boolean;
10807
11076
  onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
10808
11077
  onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
11078
+ onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
10809
11079
  onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
10810
11080
  onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
10811
11081
  onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
@@ -10838,12 +11108,16 @@ declare var RTCDataChannelEvent: {
10838
11108
  };
10839
11109
 
10840
11110
  interface RTCDtlsTransportEventMap {
11111
+ "error": Event;
10841
11112
  "statechange": Event;
10842
11113
  }
10843
11114
 
10844
11115
  interface RTCDtlsTransport extends EventTarget {
11116
+ readonly iceTransport: RTCIceTransport;
11117
+ onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
10845
11118
  onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
10846
11119
  readonly state: RTCDtlsTransportState;
11120
+ getRemoteCertificates(): ArrayBuffer[];
10847
11121
  addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10848
11122
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10849
11123
  removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10855,6 +11129,51 @@ declare var RTCDtlsTransport: {
10855
11129
  new(): RTCDtlsTransport;
10856
11130
  };
10857
11131
 
11132
+ interface RTCEncodedAudioFrame {
11133
+ data: ArrayBuffer;
11134
+ readonly timestamp: number;
11135
+ getMetadata(): RTCEncodedAudioFrameMetadata;
11136
+ }
11137
+
11138
+ declare var RTCEncodedAudioFrame: {
11139
+ prototype: RTCEncodedAudioFrame;
11140
+ new(): RTCEncodedAudioFrame;
11141
+ };
11142
+
11143
+ interface RTCEncodedVideoFrame {
11144
+ data: ArrayBuffer;
11145
+ readonly timestamp: number;
11146
+ readonly type: RTCEncodedVideoFrameType;
11147
+ getMetadata(): RTCEncodedVideoFrameMetadata;
11148
+ }
11149
+
11150
+ declare var RTCEncodedVideoFrame: {
11151
+ prototype: RTCEncodedVideoFrame;
11152
+ new(): RTCEncodedVideoFrame;
11153
+ };
11154
+
11155
+ interface RTCError extends DOMException {
11156
+ readonly errorDetail: RTCErrorDetailType;
11157
+ readonly receivedAlert: number | null;
11158
+ readonly sctpCauseCode: number | null;
11159
+ readonly sdpLineNumber: number | null;
11160
+ readonly sentAlert: number | null;
11161
+ }
11162
+
11163
+ declare var RTCError: {
11164
+ prototype: RTCError;
11165
+ new(init: RTCErrorInit, message?: string): RTCError;
11166
+ };
11167
+
11168
+ interface RTCErrorEvent extends Event {
11169
+ readonly error: RTCError;
11170
+ }
11171
+
11172
+ declare var RTCErrorEvent: {
11173
+ prototype: RTCErrorEvent;
11174
+ new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
11175
+ };
11176
+
10858
11177
  /** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
10859
11178
  interface RTCIceCandidate {
10860
11179
  readonly address: string | null;
@@ -10879,10 +11198,21 @@ declare var RTCIceCandidate: {
10879
11198
  new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
10880
11199
  };
10881
11200
 
11201
+ interface RTCIceTransportEventMap {
11202
+ "gatheringstatechange": Event;
11203
+ "statechange": Event;
11204
+ }
11205
+
10882
11206
  /** Provides access to information about the ICE transport layer over which the data is being sent and received. */
10883
11207
  interface RTCIceTransport extends EventTarget {
10884
11208
  readonly gatheringState: RTCIceGathererState;
11209
+ ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
11210
+ onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
10885
11211
  readonly state: RTCIceTransportState;
11212
+ addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11213
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
11214
+ removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
11215
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10886
11216
  }
10887
11217
 
10888
11218
  declare var RTCIceTransport: {
@@ -10923,6 +11253,7 @@ interface RTCPeerConnection extends EventTarget {
10923
11253
  readonly pendingLocalDescription: RTCSessionDescription | null;
10924
11254
  readonly pendingRemoteDescription: RTCSessionDescription | null;
10925
11255
  readonly remoteDescription: RTCSessionDescription | null;
11256
+ readonly sctp: RTCSctpTransport | null;
10926
11257
  readonly signalingState: RTCSignalingState;
10927
11258
  addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
10928
11259
  /** @deprecated */
@@ -11035,6 +11366,27 @@ declare var RTCRtpTransceiver: {
11035
11366
  new(): RTCRtpTransceiver;
11036
11367
  };
11037
11368
 
11369
+ interface RTCSctpTransportEventMap {
11370
+ "statechange": Event;
11371
+ }
11372
+
11373
+ interface RTCSctpTransport extends EventTarget {
11374
+ readonly maxChannels: number | null;
11375
+ readonly maxMessageSize: number;
11376
+ onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
11377
+ readonly state: RTCSctpTransportState;
11378
+ readonly transport: RTCDtlsTransport;
11379
+ addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11380
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
11381
+ removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
11382
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
11383
+ }
11384
+
11385
+ declare var RTCSctpTransport: {
11386
+ prototype: RTCSctpTransport;
11387
+ new(): RTCSctpTransport;
11388
+ };
11389
+
11038
11390
  /** One end of a connection—or potential connection—and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
11039
11391
  interface RTCSessionDescription {
11040
11392
  readonly sdp: string;
@@ -11223,7 +11575,7 @@ interface Request extends Body {
11223
11575
 
11224
11576
  declare var Request: {
11225
11577
  prototype: Request;
11226
- new(input: RequestInfo, init?: RequestInit): Request;
11578
+ new(input: RequestInfo | URL, init?: RequestInit): Request;
11227
11579
  };
11228
11580
 
11229
11581
  interface ResizeObserver {
@@ -13182,6 +13534,7 @@ interface ServiceWorkerRegistrationEventMap {
13182
13534
  interface ServiceWorkerRegistration extends EventTarget {
13183
13535
  readonly active: ServiceWorker | null;
13184
13536
  readonly installing: ServiceWorker | null;
13537
+ readonly navigationPreload: NavigationPreloadManager;
13185
13538
  onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
13186
13539
  readonly pushManager: PushManager;
13187
13540
  readonly scope: string;
@@ -13575,10 +13928,10 @@ interface SubtleCrypto {
13575
13928
  encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
13576
13929
  exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
13577
13930
  exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
13578
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
13579
- generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13931
+ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
13932
+ generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
13580
13933
  generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
13581
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13934
+ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
13582
13935
  importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13583
13936
  sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
13584
13937
  unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
@@ -14096,6 +14449,19 @@ declare var ValidityState: {
14096
14449
  new(): ValidityState;
14097
14450
  };
14098
14451
 
14452
+ interface VideoColorSpace {
14453
+ readonly fullRange: boolean | null;
14454
+ readonly matrix: VideoMatrixCoefficients | null;
14455
+ readonly primaries: VideoColorPrimaries | null;
14456
+ readonly transfer: VideoTransferCharacteristics | null;
14457
+ toJSON(): VideoColorSpaceInit;
14458
+ }
14459
+
14460
+ declare var VideoColorSpace: {
14461
+ prototype: VideoColorSpace;
14462
+ new(init?: VideoColorSpaceInit): VideoColorSpace;
14463
+ };
14464
+
14099
14465
  /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
14100
14466
  interface VideoPlaybackQuality {
14101
14467
  /** @deprecated */
@@ -14191,13 +14557,6 @@ interface WEBGL_compressed_texture_etc1 {
14191
14557
  readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
14192
14558
  }
14193
14559
 
14194
- interface WEBGL_compressed_texture_pvrtc {
14195
- readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
14196
- readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
14197
- readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
14198
- readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
14199
- }
14200
-
14201
14560
  /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
14202
14561
  interface WEBGL_compressed_texture_s3tc {
14203
14562
  readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -15700,7 +16059,6 @@ interface WebGLRenderingContextBase {
15700
16059
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
15701
16060
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
15702
16061
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
15703
- getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
15704
16062
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
15705
16063
  getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
15706
16064
  getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
@@ -16248,6 +16606,7 @@ declare var WheelEvent: {
16248
16606
  };
16249
16607
 
16250
16608
  interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
16609
+ "DOMContentLoaded": Event;
16251
16610
  "devicemotion": DeviceMotionEvent;
16252
16611
  "deviceorientation": DeviceOrientationEvent;
16253
16612
  "gamepadconnected": GamepadEvent;
@@ -16447,11 +16806,12 @@ interface WindowOrWorkerGlobalScope {
16447
16806
  clearTimeout(id?: number): void;
16448
16807
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16449
16808
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16450
- fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
16809
+ fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
16451
16810
  queueMicrotask(callback: VoidFunction): void;
16452
16811
  reportError(e: any): void;
16453
16812
  setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
16454
16813
  setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
16814
+ structuredClone(value: any, options?: StructuredSerializeOptions): any;
16455
16815
  }
16456
16816
 
16457
16817
  interface WindowSessionStorage {
@@ -17096,6 +17456,10 @@ interface UnderlyingSourceStartCallback<R> {
17096
17456
  (controller: ReadableStreamController<R>): any;
17097
17457
  }
17098
17458
 
17459
+ interface VideoFrameRequestCallback {
17460
+ (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata): void;
17461
+ }
17462
+
17099
17463
  interface VoidFunction {
17100
17464
  (): void;
17101
17465
  }
@@ -17728,11 +18092,12 @@ declare function clearInterval(id?: number): void;
17728
18092
  declare function clearTimeout(id?: number): void;
17729
18093
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17730
18094
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17731
- declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
18095
+ declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
17732
18096
  declare function queueMicrotask(callback: VoidFunction): void;
17733
18097
  declare function reportError(e: any): void;
17734
18098
  declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
17735
18099
  declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
18100
+ declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
17736
18101
  declare var sessionStorage: Storage;
17737
18102
  declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
17738
18103
  declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -17747,8 +18112,7 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
17747
18112
  type COSEAlgorithmIdentifier = number;
17748
18113
  type CSSNumberish = number;
17749
18114
  type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
17750
- type ClipboardItemData = Promise<ClipboardItemDataType>;
17751
- type ClipboardItemDataType = string | Blob;
18115
+ type ClipboardItemData = Promise<string | Blob>;
17752
18116
  type ClipboardItems = ClipboardItem[];
17753
18117
  type ConstrainBoolean = boolean | ConstrainBooleanParameters;
17754
18118
  type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
@@ -17863,6 +18227,9 @@ type KeyType = "private" | "public" | "secret";
17863
18227
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
17864
18228
  type LineAlignSetting = "center" | "end" | "start";
17865
18229
  type LockMode = "exclusive" | "shared";
18230
+ type MIDIPortConnectionState = "closed" | "open" | "pending";
18231
+ type MIDIPortDeviceState = "connected" | "disconnected";
18232
+ type MIDIPortType = "input" | "output";
17866
18233
  type MediaDecodingType = "file" | "media-source" | "webrtc";
17867
18234
  type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
17868
18235
  type MediaEncodingType = "record" | "webrtc";
@@ -17874,7 +18241,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
17874
18241
  type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
17875
18242
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
17876
18243
  type MediaStreamTrackState = "ended" | "live";
17877
- type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
18244
+ type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
17878
18245
  type NotificationDirection = "auto" | "ltr" | "rtl";
17879
18246
  type NotificationPermission = "default" | "denied" | "granted";
17880
18247
  type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
@@ -17896,6 +18263,8 @@ type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
17896
18263
  type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
17897
18264
  type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
17898
18265
  type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
18266
+ type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
18267
+ type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
17899
18268
  type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
17900
18269
  type RTCIceComponent = "rtcp" | "rtp";
17901
18270
  type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
@@ -17910,6 +18279,7 @@ type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnec
17910
18279
  type RTCPriorityType = "high" | "low" | "medium" | "very-low";
17911
18280
  type RTCRtcpMuxPolicy = "require";
17912
18281
  type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
18282
+ type RTCSctpTransportState = "closed" | "connected" | "connecting";
17913
18283
  type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
17914
18284
  type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
17915
18285
  type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
@@ -17943,7 +18313,10 @@ type TextTrackMode = "disabled" | "hidden" | "showing";
17943
18313
  type TouchType = "direct" | "stylus";
17944
18314
  type TransferFunction = "hlg" | "pq" | "srgb";
17945
18315
  type UserVerificationRequirement = "discouraged" | "preferred" | "required";
18316
+ type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
17946
18317
  type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
18318
+ type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
18319
+ type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
17947
18320
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
17948
18321
  type WorkerType = "classic" | "module";
17949
18322
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";