@types/web 0.0.338 → 0.0.339

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/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.338 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.338.
50
+ You can read what changed in version 0.0.339 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.339.
package/index.d.ts CHANGED
@@ -411,6 +411,10 @@ interface CloseEventInit extends EventInit {
411
411
  wasClean?: boolean;
412
412
  }
413
413
 
414
+ interface CloseWatcherOptions {
415
+ signal?: AbortSignal;
416
+ }
417
+
414
418
  interface CommandEventInit extends EventInit {
415
419
  command?: string;
416
420
  source?: Element | null;
@@ -3121,6 +3125,23 @@ interface WebTransportCloseInfo {
3121
3125
  reason?: string;
3122
3126
  }
3123
3127
 
3128
+ interface WebTransportConnectionStats {
3129
+ bytesReceived?: number;
3130
+ datagrams: WebTransportDatagramStats;
3131
+ minRtt?: DOMHighResTimeStamp;
3132
+ packetsLost?: number;
3133
+ packetsReceived?: number;
3134
+ packetsSent?: number;
3135
+ rttVariation?: DOMHighResTimeStamp;
3136
+ smoothedRtt?: DOMHighResTimeStamp;
3137
+ }
3138
+
3139
+ interface WebTransportDatagramStats {
3140
+ droppedIncoming?: number;
3141
+ expiredOutgoing?: number;
3142
+ lostOutgoing?: number;
3143
+ }
3144
+
3124
3145
  interface WebTransportErrorOptions {
3125
3146
  source?: WebTransportErrorSource;
3126
3147
  streamErrorCode?: number | null;
@@ -3139,6 +3160,11 @@ interface WebTransportOptions {
3139
3160
  serverCertificateHashes?: WebTransportHash[];
3140
3161
  }
3141
3162
 
3163
+ interface WebTransportReceiveStreamStats {
3164
+ bytesRead?: number;
3165
+ bytesReceived?: number;
3166
+ }
3167
+
3142
3168
  interface WebTransportSendOptions {
3143
3169
  sendOrder?: number;
3144
3170
  }
@@ -3146,6 +3172,12 @@ interface WebTransportSendOptions {
3146
3172
  interface WebTransportSendStreamOptions extends WebTransportSendOptions {
3147
3173
  }
3148
3174
 
3175
+ interface WebTransportSendStreamStats {
3176
+ bytesAcknowledged?: number;
3177
+ bytesSent?: number;
3178
+ bytesWritten?: number;
3179
+ }
3180
+
3149
3181
  interface WheelEventInit extends MouseEventInit {
3150
3182
  deltaMode?: number;
3151
3183
  deltaX?: number;
@@ -6818,7 +6850,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6818
6850
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
6819
6851
  */
6820
6852
  backgroundSize: string;
6821
- /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
6853
+ /**
6854
+ * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute.
6855
+ *
6856
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift)
6857
+ */
6822
6858
  baselineShift: string;
6823
6859
  /**
6824
6860
  * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
@@ -10796,6 +10832,50 @@ declare var CloseEvent: {
10796
10832
  new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
10797
10833
  };
10798
10834
 
10835
+ interface CloseWatcherEventMap {
10836
+ "cancel": Event;
10837
+ "close": Event;
10838
+ }
10839
+
10840
+ /**
10841
+ * The **`CloseWatcher`** interface allows a custom UI component with open and close semantics to respond to device-specific close actions in the same way as a built-in component.
10842
+ *
10843
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher)
10844
+ */
10845
+ interface CloseWatcher extends EventTarget {
10846
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/cancel_event) */
10847
+ oncancel: ((this: CloseWatcher, ev: Event) => any) | null;
10848
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close_event) */
10849
+ onclose: ((this: CloseWatcher, ev: Event) => any) | null;
10850
+ /**
10851
+ * The **`close()`** method of the CloseWatcher interface lets you skip any logic in the cancel event handler and immediately fire the close event. It then deactivates the close watcher as if destroy() was called.
10852
+ *
10853
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close)
10854
+ */
10855
+ close(): void;
10856
+ /**
10857
+ * The **`destroy()`** method of the CloseWatcher interface deactivates the close watcher. This is intended to be called if the relevant UI element is torn down in some other way than being closed.
10858
+ *
10859
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/destroy)
10860
+ */
10861
+ destroy(): void;
10862
+ /**
10863
+ * The **`requestClose()`** method of the CloseWatcher interface fires a cancel event and if that event is not canceled with Event.preventDefault(), proceeds to fire a close event, and then finally deactivates the close watcher as if destroy() was called.
10864
+ *
10865
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/requestClose)
10866
+ */
10867
+ requestClose(): void;
10868
+ addEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10869
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10870
+ removeEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10871
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10872
+ }
10873
+
10874
+ declare var CloseWatcher: {
10875
+ prototype: CloseWatcher;
10876
+ new(options?: CloseWatcherOptions): CloseWatcher;
10877
+ };
10878
+
10799
10879
  /**
10800
10880
  * The **`CommandEvent`** interface represents an event notifying the user when a button element with valid commandForElement and command attributes is about to invoke an interactive element.
10801
10881
  *
@@ -11234,6 +11314,7 @@ interface CustomElementRegistry {
11234
11314
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
11235
11315
  */
11236
11316
  getName(constructor: CustomElementConstructor): string | null;
11317
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/initialize) */
11237
11318
  initialize(root: Node): void;
11238
11319
  /**
11239
11320
  * The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
@@ -13232,6 +13313,7 @@ interface DocumentOrShadowRoot {
13232
13313
  readonly activeElement: Element | null;
13233
13314
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
13234
13315
  adoptedStyleSheets: CSSStyleSheet[];
13316
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/customElementRegistry) */
13235
13317
  readonly customElementRegistry: CustomElementRegistry | null;
13236
13318
  /**
13237
13319
  * Returns document's fullscreen element.
@@ -13542,6 +13624,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
13542
13624
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
13543
13625
  */
13544
13626
  readonly currentCSSZoom: number;
13627
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/customElementRegistry) */
13545
13628
  readonly customElementRegistry: CustomElementRegistry | null;
13546
13629
  /**
13547
13630
  * The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
@@ -18766,6 +18849,12 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
18766
18849
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
18767
18850
  */
18768
18851
  checked: boolean;
18852
+ /**
18853
+ * The **`colorSpace`** property of the HTMLInputElement interface reflects the <input> element's colorspace attribute, which indicates whether the color space of the serialized CSS color is sRGB (the default) or display-p3. It is only relevant to color controls.
18854
+ *
18855
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/colorSpace)
18856
+ */
18857
+ colorSpace: string;
18769
18858
  /**
18770
18859
  * The **`defaultChecked`** property of the HTMLInputElement interface specifies the default checkedness state of the element. This property reflects the <input> element's checked attribute.
18771
18860
  *
@@ -19570,6 +19659,12 @@ interface HTMLMediaElement extends HTMLElement {
19570
19659
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
19571
19660
  */
19572
19661
  canPlayType(type: string): CanPlayTypeResult;
19662
+ /**
19663
+ * The **`captureStream()`** method of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element.
19664
+ *
19665
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/captureStream)
19666
+ */
19667
+ captureStream(): MediaStream;
19573
19668
  /**
19574
19669
  * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff.
19575
19670
  *
@@ -21307,6 +21402,7 @@ interface HTMLTemplateElement extends HTMLElement {
21307
21402
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
21308
21403
  */
21309
21404
  shadowRootClonable: boolean;
21405
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootCustomElementRegistry) */
21310
21406
  shadowRootCustomElementRegistry: string;
21311
21407
  /**
21312
21408
  * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
@@ -27899,6 +27995,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27899
27995
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
27900
27996
  */
27901
27997
  readonly decodedBodySize: number;
27998
+ /**
27999
+ * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
28000
+ *
28001
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
28002
+ */
28003
+ readonly deliveryType: string;
27902
28004
  /**
27903
28005
  * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
27904
28006
  *
@@ -27923,6 +28025,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27923
28025
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
27924
28026
  */
27925
28027
  readonly fetchStart: DOMHighResTimeStamp;
28028
+ /**
28029
+ * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server.
28030
+ *
28031
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
28032
+ */
28033
+ readonly finalResponseHeadersStart: DOMHighResTimeStamp;
28034
+ /**
28035
+ * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.
28036
+ *
28037
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
28038
+ */
28039
+ readonly firstInterimResponseStart: DOMHighResTimeStamp;
27926
28040
  /**
27927
28041
  * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
27928
28042
  *
@@ -40941,6 +41055,12 @@ interface WebTransport {
40941
41055
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
40942
41056
  */
40943
41057
  readonly closed: Promise<WebTransportCloseInfo>;
41058
+ /**
41059
+ * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
41060
+ *
41061
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
41062
+ */
41063
+ readonly congestionControl: WebTransportCongestionControl;
40944
41064
  /**
40945
41065
  * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
40946
41066
  *
@@ -40959,12 +41079,19 @@ interface WebTransport {
40959
41079
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
40960
41080
  */
40961
41081
  readonly incomingUnidirectionalStreams: ReadableStream;
41082
+ readonly protocol: string;
40962
41083
  /**
40963
41084
  * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
40964
41085
  *
40965
41086
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
40966
41087
  */
40967
41088
  readonly ready: Promise<void>;
41089
+ /**
41090
+ * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
41091
+ *
41092
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
41093
+ */
41094
+ readonly reliability: WebTransportReliabilityMode;
40968
41095
  /**
40969
41096
  * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
40970
41097
  *
@@ -40983,6 +41110,12 @@ interface WebTransport {
40983
41110
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
40984
41111
  */
40985
41112
  createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
41113
+ /**
41114
+ * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
41115
+ *
41116
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
41117
+ */
41118
+ getStats(): Promise<WebTransportConnectionStats>;
40986
41119
  }
40987
41120
 
40988
41121
  declare var WebTransport: {
@@ -41098,6 +41231,52 @@ declare var WebTransportError: {
41098
41231
  new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
41099
41232
  };
41100
41233
 
41234
+ /**
41235
+ * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
41236
+ * Available only in secure contexts.
41237
+ *
41238
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
41239
+ */
41240
+ interface WebTransportReceiveStream extends ReadableStream {
41241
+ /**
41242
+ * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
41243
+ *
41244
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
41245
+ */
41246
+ getStats(): Promise<WebTransportReceiveStreamStats>;
41247
+ }
41248
+
41249
+ declare var WebTransportReceiveStream: {
41250
+ prototype: WebTransportReceiveStream;
41251
+ new(): WebTransportReceiveStream;
41252
+ };
41253
+
41254
+ /**
41255
+ * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
41256
+ * Available only in secure contexts.
41257
+ *
41258
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
41259
+ */
41260
+ interface WebTransportSendStream extends WritableStream {
41261
+ /**
41262
+ * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
41263
+ *
41264
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
41265
+ */
41266
+ sendOrder: number;
41267
+ /**
41268
+ * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
41269
+ *
41270
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
41271
+ */
41272
+ getStats(): Promise<WebTransportSendStreamStats>;
41273
+ }
41274
+
41275
+ declare var WebTransportSendStream: {
41276
+ prototype: WebTransportSendStream;
41277
+ new(): WebTransportSendStream;
41278
+ };
41279
+
41101
41280
  /**
41102
41281
  * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
41103
41282
  *
@@ -44458,6 +44637,7 @@ type WakeLockType = "screen";
44458
44637
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
44459
44638
  type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
44460
44639
  type WebTransportErrorSource = "session" | "stream";
44640
+ type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
44461
44641
  type WorkerType = "classic" | "module";
44462
44642
  type WriteCommandType = "seek" | "truncate" | "write";
44463
44643
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.338",
3
+ "version": "0.0.339",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -408,6 +408,10 @@ interface CloseEventInit extends EventInit {
408
408
  wasClean?: boolean;
409
409
  }
410
410
 
411
+ interface CloseWatcherOptions {
412
+ signal?: AbortSignal;
413
+ }
414
+
411
415
  interface CommandEventInit extends EventInit {
412
416
  command?: string;
413
417
  source?: Element | null;
@@ -3118,6 +3122,23 @@ interface WebTransportCloseInfo {
3118
3122
  reason?: string;
3119
3123
  }
3120
3124
 
3125
+ interface WebTransportConnectionStats {
3126
+ bytesReceived?: number;
3127
+ datagrams: WebTransportDatagramStats;
3128
+ minRtt?: DOMHighResTimeStamp;
3129
+ packetsLost?: number;
3130
+ packetsReceived?: number;
3131
+ packetsSent?: number;
3132
+ rttVariation?: DOMHighResTimeStamp;
3133
+ smoothedRtt?: DOMHighResTimeStamp;
3134
+ }
3135
+
3136
+ interface WebTransportDatagramStats {
3137
+ droppedIncoming?: number;
3138
+ expiredOutgoing?: number;
3139
+ lostOutgoing?: number;
3140
+ }
3141
+
3121
3142
  interface WebTransportErrorOptions {
3122
3143
  source?: WebTransportErrorSource;
3123
3144
  streamErrorCode?: number | null;
@@ -3136,6 +3157,11 @@ interface WebTransportOptions {
3136
3157
  serverCertificateHashes?: WebTransportHash[];
3137
3158
  }
3138
3159
 
3160
+ interface WebTransportReceiveStreamStats {
3161
+ bytesRead?: number;
3162
+ bytesReceived?: number;
3163
+ }
3164
+
3139
3165
  interface WebTransportSendOptions {
3140
3166
  sendOrder?: number;
3141
3167
  }
@@ -3143,6 +3169,12 @@ interface WebTransportSendOptions {
3143
3169
  interface WebTransportSendStreamOptions extends WebTransportSendOptions {
3144
3170
  }
3145
3171
 
3172
+ interface WebTransportSendStreamStats {
3173
+ bytesAcknowledged?: number;
3174
+ bytesSent?: number;
3175
+ bytesWritten?: number;
3176
+ }
3177
+
3146
3178
  interface WheelEventInit extends MouseEventInit {
3147
3179
  deltaMode?: number;
3148
3180
  deltaX?: number;
@@ -6808,7 +6840,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6808
6840
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
6809
6841
  */
6810
6842
  backgroundSize: string;
6811
- /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
6843
+ /**
6844
+ * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute.
6845
+ *
6846
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift)
6847
+ */
6812
6848
  baselineShift: string;
6813
6849
  /**
6814
6850
  * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
@@ -10785,6 +10821,50 @@ declare var CloseEvent: {
10785
10821
  new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
10786
10822
  };
10787
10823
 
10824
+ interface CloseWatcherEventMap {
10825
+ "cancel": Event;
10826
+ "close": Event;
10827
+ }
10828
+
10829
+ /**
10830
+ * The **`CloseWatcher`** interface allows a custom UI component with open and close semantics to respond to device-specific close actions in the same way as a built-in component.
10831
+ *
10832
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher)
10833
+ */
10834
+ interface CloseWatcher extends EventTarget {
10835
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/cancel_event) */
10836
+ oncancel: ((this: CloseWatcher, ev: Event) => any) | null;
10837
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close_event) */
10838
+ onclose: ((this: CloseWatcher, ev: Event) => any) | null;
10839
+ /**
10840
+ * The **`close()`** method of the CloseWatcher interface lets you skip any logic in the cancel event handler and immediately fire the close event. It then deactivates the close watcher as if destroy() was called.
10841
+ *
10842
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close)
10843
+ */
10844
+ close(): void;
10845
+ /**
10846
+ * The **`destroy()`** method of the CloseWatcher interface deactivates the close watcher. This is intended to be called if the relevant UI element is torn down in some other way than being closed.
10847
+ *
10848
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/destroy)
10849
+ */
10850
+ destroy(): void;
10851
+ /**
10852
+ * The **`requestClose()`** method of the CloseWatcher interface fires a cancel event and if that event is not canceled with Event.preventDefault(), proceeds to fire a close event, and then finally deactivates the close watcher as if destroy() was called.
10853
+ *
10854
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/requestClose)
10855
+ */
10856
+ requestClose(): void;
10857
+ addEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10858
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10859
+ removeEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10860
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10861
+ }
10862
+
10863
+ declare var CloseWatcher: {
10864
+ prototype: CloseWatcher;
10865
+ new(options?: CloseWatcherOptions): CloseWatcher;
10866
+ };
10867
+
10788
10868
  /**
10789
10869
  * The **`CommandEvent`** interface represents an event notifying the user when a button element with valid commandForElement and command attributes is about to invoke an interactive element.
10790
10870
  *
@@ -11223,6 +11303,7 @@ interface CustomElementRegistry {
11223
11303
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
11224
11304
  */
11225
11305
  getName(constructor: CustomElementConstructor): string | null;
11306
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/initialize) */
11226
11307
  initialize(root: Node): void;
11227
11308
  /**
11228
11309
  * The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
@@ -13221,6 +13302,7 @@ interface DocumentOrShadowRoot {
13221
13302
  readonly activeElement: Element | null;
13222
13303
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
13223
13304
  adoptedStyleSheets: CSSStyleSheet[];
13305
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/customElementRegistry) */
13224
13306
  readonly customElementRegistry: CustomElementRegistry | null;
13225
13307
  /**
13226
13308
  * Returns document's fullscreen element.
@@ -13530,6 +13612,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
13530
13612
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
13531
13613
  */
13532
13614
  readonly currentCSSZoom: number;
13615
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/customElementRegistry) */
13533
13616
  readonly customElementRegistry: CustomElementRegistry | null;
13534
13617
  /**
13535
13618
  * The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
@@ -18748,6 +18831,12 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
18748
18831
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
18749
18832
  */
18750
18833
  checked: boolean;
18834
+ /**
18835
+ * The **`colorSpace`** property of the HTMLInputElement interface reflects the <input> element's colorspace attribute, which indicates whether the color space of the serialized CSS color is sRGB (the default) or display-p3. It is only relevant to color controls.
18836
+ *
18837
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/colorSpace)
18838
+ */
18839
+ colorSpace: string;
18751
18840
  /**
18752
18841
  * The **`defaultChecked`** property of the HTMLInputElement interface specifies the default checkedness state of the element. This property reflects the <input> element's checked attribute.
18753
18842
  *
@@ -19549,6 +19638,12 @@ interface HTMLMediaElement extends HTMLElement {
19549
19638
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
19550
19639
  */
19551
19640
  canPlayType(type: string): CanPlayTypeResult;
19641
+ /**
19642
+ * The **`captureStream()`** method of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element.
19643
+ *
19644
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/captureStream)
19645
+ */
19646
+ captureStream(): MediaStream;
19552
19647
  /**
19553
19648
  * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff.
19554
19649
  *
@@ -21283,6 +21378,7 @@ interface HTMLTemplateElement extends HTMLElement {
21283
21378
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
21284
21379
  */
21285
21380
  shadowRootClonable: boolean;
21381
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootCustomElementRegistry) */
21286
21382
  shadowRootCustomElementRegistry: string;
21287
21383
  /**
21288
21384
  * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
@@ -27875,6 +27971,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27875
27971
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
27876
27972
  */
27877
27973
  readonly decodedBodySize: number;
27974
+ /**
27975
+ * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
27976
+ *
27977
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
27978
+ */
27979
+ readonly deliveryType: string;
27878
27980
  /**
27879
27981
  * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
27880
27982
  *
@@ -27899,6 +28001,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27899
28001
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
27900
28002
  */
27901
28003
  readonly fetchStart: DOMHighResTimeStamp;
28004
+ /**
28005
+ * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server.
28006
+ *
28007
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
28008
+ */
28009
+ readonly finalResponseHeadersStart: DOMHighResTimeStamp;
28010
+ /**
28011
+ * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.
28012
+ *
28013
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
28014
+ */
28015
+ readonly firstInterimResponseStart: DOMHighResTimeStamp;
27902
28016
  /**
27903
28017
  * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
27904
28018
  *
@@ -40915,6 +41029,12 @@ interface WebTransport {
40915
41029
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
40916
41030
  */
40917
41031
  readonly closed: Promise<WebTransportCloseInfo>;
41032
+ /**
41033
+ * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
41034
+ *
41035
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
41036
+ */
41037
+ readonly congestionControl: WebTransportCongestionControl;
40918
41038
  /**
40919
41039
  * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
40920
41040
  *
@@ -40933,12 +41053,19 @@ interface WebTransport {
40933
41053
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
40934
41054
  */
40935
41055
  readonly incomingUnidirectionalStreams: ReadableStream;
41056
+ readonly protocol: string;
40936
41057
  /**
40937
41058
  * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
40938
41059
  *
40939
41060
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
40940
41061
  */
40941
41062
  readonly ready: Promise<void>;
41063
+ /**
41064
+ * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
41065
+ *
41066
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
41067
+ */
41068
+ readonly reliability: WebTransportReliabilityMode;
40942
41069
  /**
40943
41070
  * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
40944
41071
  *
@@ -40957,6 +41084,12 @@ interface WebTransport {
40957
41084
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
40958
41085
  */
40959
41086
  createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
41087
+ /**
41088
+ * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
41089
+ *
41090
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
41091
+ */
41092
+ getStats(): Promise<WebTransportConnectionStats>;
40960
41093
  }
40961
41094
 
40962
41095
  declare var WebTransport: {
@@ -41072,6 +41205,52 @@ declare var WebTransportError: {
41072
41205
  new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
41073
41206
  };
41074
41207
 
41208
+ /**
41209
+ * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
41210
+ * Available only in secure contexts.
41211
+ *
41212
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
41213
+ */
41214
+ interface WebTransportReceiveStream extends ReadableStream {
41215
+ /**
41216
+ * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
41217
+ *
41218
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
41219
+ */
41220
+ getStats(): Promise<WebTransportReceiveStreamStats>;
41221
+ }
41222
+
41223
+ declare var WebTransportReceiveStream: {
41224
+ prototype: WebTransportReceiveStream;
41225
+ new(): WebTransportReceiveStream;
41226
+ };
41227
+
41228
+ /**
41229
+ * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
41230
+ * Available only in secure contexts.
41231
+ *
41232
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
41233
+ */
41234
+ interface WebTransportSendStream extends WritableStream {
41235
+ /**
41236
+ * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
41237
+ *
41238
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
41239
+ */
41240
+ sendOrder: number;
41241
+ /**
41242
+ * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
41243
+ *
41244
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
41245
+ */
41246
+ getStats(): Promise<WebTransportSendStreamStats>;
41247
+ }
41248
+
41249
+ declare var WebTransportSendStream: {
41250
+ prototype: WebTransportSendStream;
41251
+ new(): WebTransportSendStream;
41252
+ };
41253
+
41075
41254
  /**
41076
41255
  * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
41077
41256
  *
@@ -44432,6 +44611,7 @@ type WakeLockType = "screen";
44432
44611
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
44433
44612
  type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
44434
44613
  type WebTransportErrorSource = "session" | "stream";
44614
+ type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
44435
44615
  type WorkerType = "classic" | "module";
44436
44616
  type WriteCommandType = "seek" | "truncate" | "write";
44437
44617
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
package/ts5.6/index.d.ts CHANGED
@@ -408,6 +408,10 @@ interface CloseEventInit extends EventInit {
408
408
  wasClean?: boolean;
409
409
  }
410
410
 
411
+ interface CloseWatcherOptions {
412
+ signal?: AbortSignal;
413
+ }
414
+
411
415
  interface CommandEventInit extends EventInit {
412
416
  command?: string;
413
417
  source?: Element | null;
@@ -3118,6 +3122,23 @@ interface WebTransportCloseInfo {
3118
3122
  reason?: string;
3119
3123
  }
3120
3124
 
3125
+ interface WebTransportConnectionStats {
3126
+ bytesReceived?: number;
3127
+ datagrams: WebTransportDatagramStats;
3128
+ minRtt?: DOMHighResTimeStamp;
3129
+ packetsLost?: number;
3130
+ packetsReceived?: number;
3131
+ packetsSent?: number;
3132
+ rttVariation?: DOMHighResTimeStamp;
3133
+ smoothedRtt?: DOMHighResTimeStamp;
3134
+ }
3135
+
3136
+ interface WebTransportDatagramStats {
3137
+ droppedIncoming?: number;
3138
+ expiredOutgoing?: number;
3139
+ lostOutgoing?: number;
3140
+ }
3141
+
3121
3142
  interface WebTransportErrorOptions {
3122
3143
  source?: WebTransportErrorSource;
3123
3144
  streamErrorCode?: number | null;
@@ -3136,6 +3157,11 @@ interface WebTransportOptions {
3136
3157
  serverCertificateHashes?: WebTransportHash[];
3137
3158
  }
3138
3159
 
3160
+ interface WebTransportReceiveStreamStats {
3161
+ bytesRead?: number;
3162
+ bytesReceived?: number;
3163
+ }
3164
+
3139
3165
  interface WebTransportSendOptions {
3140
3166
  sendOrder?: number;
3141
3167
  }
@@ -3143,6 +3169,12 @@ interface WebTransportSendOptions {
3143
3169
  interface WebTransportSendStreamOptions extends WebTransportSendOptions {
3144
3170
  }
3145
3171
 
3172
+ interface WebTransportSendStreamStats {
3173
+ bytesAcknowledged?: number;
3174
+ bytesSent?: number;
3175
+ bytesWritten?: number;
3176
+ }
3177
+
3146
3178
  interface WheelEventInit extends MouseEventInit {
3147
3179
  deltaMode?: number;
3148
3180
  deltaX?: number;
@@ -6815,7 +6847,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6815
6847
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
6816
6848
  */
6817
6849
  backgroundSize: string;
6818
- /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
6850
+ /**
6851
+ * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute.
6852
+ *
6853
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift)
6854
+ */
6819
6855
  baselineShift: string;
6820
6856
  /**
6821
6857
  * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
@@ -10793,6 +10829,50 @@ declare var CloseEvent: {
10793
10829
  new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
10794
10830
  };
10795
10831
 
10832
+ interface CloseWatcherEventMap {
10833
+ "cancel": Event;
10834
+ "close": Event;
10835
+ }
10836
+
10837
+ /**
10838
+ * The **`CloseWatcher`** interface allows a custom UI component with open and close semantics to respond to device-specific close actions in the same way as a built-in component.
10839
+ *
10840
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher)
10841
+ */
10842
+ interface CloseWatcher extends EventTarget {
10843
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/cancel_event) */
10844
+ oncancel: ((this: CloseWatcher, ev: Event) => any) | null;
10845
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close_event) */
10846
+ onclose: ((this: CloseWatcher, ev: Event) => any) | null;
10847
+ /**
10848
+ * The **`close()`** method of the CloseWatcher interface lets you skip any logic in the cancel event handler and immediately fire the close event. It then deactivates the close watcher as if destroy() was called.
10849
+ *
10850
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close)
10851
+ */
10852
+ close(): void;
10853
+ /**
10854
+ * The **`destroy()`** method of the CloseWatcher interface deactivates the close watcher. This is intended to be called if the relevant UI element is torn down in some other way than being closed.
10855
+ *
10856
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/destroy)
10857
+ */
10858
+ destroy(): void;
10859
+ /**
10860
+ * The **`requestClose()`** method of the CloseWatcher interface fires a cancel event and if that event is not canceled with Event.preventDefault(), proceeds to fire a close event, and then finally deactivates the close watcher as if destroy() was called.
10861
+ *
10862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/requestClose)
10863
+ */
10864
+ requestClose(): void;
10865
+ addEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10866
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10867
+ removeEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10868
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10869
+ }
10870
+
10871
+ declare var CloseWatcher: {
10872
+ prototype: CloseWatcher;
10873
+ new(options?: CloseWatcherOptions): CloseWatcher;
10874
+ };
10875
+
10796
10876
  /**
10797
10877
  * The **`CommandEvent`** interface represents an event notifying the user when a button element with valid commandForElement and command attributes is about to invoke an interactive element.
10798
10878
  *
@@ -11231,6 +11311,7 @@ interface CustomElementRegistry {
11231
11311
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
11232
11312
  */
11233
11313
  getName(constructor: CustomElementConstructor): string | null;
11314
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/initialize) */
11234
11315
  initialize(root: Node): void;
11235
11316
  /**
11236
11317
  * The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
@@ -13229,6 +13310,7 @@ interface DocumentOrShadowRoot {
13229
13310
  readonly activeElement: Element | null;
13230
13311
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
13231
13312
  adoptedStyleSheets: CSSStyleSheet[];
13313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/customElementRegistry) */
13232
13314
  readonly customElementRegistry: CustomElementRegistry | null;
13233
13315
  /**
13234
13316
  * Returns document's fullscreen element.
@@ -13539,6 +13621,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
13539
13621
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
13540
13622
  */
13541
13623
  readonly currentCSSZoom: number;
13624
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/customElementRegistry) */
13542
13625
  readonly customElementRegistry: CustomElementRegistry | null;
13543
13626
  /**
13544
13627
  * The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
@@ -18763,6 +18846,12 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
18763
18846
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
18764
18847
  */
18765
18848
  checked: boolean;
18849
+ /**
18850
+ * The **`colorSpace`** property of the HTMLInputElement interface reflects the <input> element's colorspace attribute, which indicates whether the color space of the serialized CSS color is sRGB (the default) or display-p3. It is only relevant to color controls.
18851
+ *
18852
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/colorSpace)
18853
+ */
18854
+ colorSpace: string;
18766
18855
  /**
18767
18856
  * The **`defaultChecked`** property of the HTMLInputElement interface specifies the default checkedness state of the element. This property reflects the <input> element's checked attribute.
18768
18857
  *
@@ -19567,6 +19656,12 @@ interface HTMLMediaElement extends HTMLElement {
19567
19656
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
19568
19657
  */
19569
19658
  canPlayType(type: string): CanPlayTypeResult;
19659
+ /**
19660
+ * The **`captureStream()`** method of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element.
19661
+ *
19662
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/captureStream)
19663
+ */
19664
+ captureStream(): MediaStream;
19570
19665
  /**
19571
19666
  * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff.
19572
19667
  *
@@ -21304,6 +21399,7 @@ interface HTMLTemplateElement extends HTMLElement {
21304
21399
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
21305
21400
  */
21306
21401
  shadowRootClonable: boolean;
21402
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootCustomElementRegistry) */
21307
21403
  shadowRootCustomElementRegistry: string;
21308
21404
  /**
21309
21405
  * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
@@ -27896,6 +27992,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27896
27992
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
27897
27993
  */
27898
27994
  readonly decodedBodySize: number;
27995
+ /**
27996
+ * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
27997
+ *
27998
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
27999
+ */
28000
+ readonly deliveryType: string;
27899
28001
  /**
27900
28002
  * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
27901
28003
  *
@@ -27920,6 +28022,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27920
28022
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
27921
28023
  */
27922
28024
  readonly fetchStart: DOMHighResTimeStamp;
28025
+ /**
28026
+ * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server.
28027
+ *
28028
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
28029
+ */
28030
+ readonly finalResponseHeadersStart: DOMHighResTimeStamp;
28031
+ /**
28032
+ * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.
28033
+ *
28034
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
28035
+ */
28036
+ readonly firstInterimResponseStart: DOMHighResTimeStamp;
27923
28037
  /**
27924
28038
  * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
27925
28039
  *
@@ -40938,6 +41052,12 @@ interface WebTransport {
40938
41052
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
40939
41053
  */
40940
41054
  readonly closed: Promise<WebTransportCloseInfo>;
41055
+ /**
41056
+ * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
41057
+ *
41058
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
41059
+ */
41060
+ readonly congestionControl: WebTransportCongestionControl;
40941
41061
  /**
40942
41062
  * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
40943
41063
  *
@@ -40956,12 +41076,19 @@ interface WebTransport {
40956
41076
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
40957
41077
  */
40958
41078
  readonly incomingUnidirectionalStreams: ReadableStream;
41079
+ readonly protocol: string;
40959
41080
  /**
40960
41081
  * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
40961
41082
  *
40962
41083
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
40963
41084
  */
40964
41085
  readonly ready: Promise<void>;
41086
+ /**
41087
+ * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
41088
+ *
41089
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
41090
+ */
41091
+ readonly reliability: WebTransportReliabilityMode;
40965
41092
  /**
40966
41093
  * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
40967
41094
  *
@@ -40980,6 +41107,12 @@ interface WebTransport {
40980
41107
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
40981
41108
  */
40982
41109
  createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
41110
+ /**
41111
+ * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
41112
+ *
41113
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
41114
+ */
41115
+ getStats(): Promise<WebTransportConnectionStats>;
40983
41116
  }
40984
41117
 
40985
41118
  declare var WebTransport: {
@@ -41095,6 +41228,52 @@ declare var WebTransportError: {
41095
41228
  new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
41096
41229
  };
41097
41230
 
41231
+ /**
41232
+ * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
41233
+ * Available only in secure contexts.
41234
+ *
41235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
41236
+ */
41237
+ interface WebTransportReceiveStream extends ReadableStream {
41238
+ /**
41239
+ * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
41240
+ *
41241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
41242
+ */
41243
+ getStats(): Promise<WebTransportReceiveStreamStats>;
41244
+ }
41245
+
41246
+ declare var WebTransportReceiveStream: {
41247
+ prototype: WebTransportReceiveStream;
41248
+ new(): WebTransportReceiveStream;
41249
+ };
41250
+
41251
+ /**
41252
+ * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
41253
+ * Available only in secure contexts.
41254
+ *
41255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
41256
+ */
41257
+ interface WebTransportSendStream extends WritableStream {
41258
+ /**
41259
+ * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
41260
+ *
41261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
41262
+ */
41263
+ sendOrder: number;
41264
+ /**
41265
+ * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
41266
+ *
41267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
41268
+ */
41269
+ getStats(): Promise<WebTransportSendStreamStats>;
41270
+ }
41271
+
41272
+ declare var WebTransportSendStream: {
41273
+ prototype: WebTransportSendStream;
41274
+ new(): WebTransportSendStream;
41275
+ };
41276
+
41098
41277
  /**
41099
41278
  * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
41100
41279
  *
@@ -44455,6 +44634,7 @@ type WakeLockType = "screen";
44455
44634
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
44456
44635
  type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
44457
44636
  type WebTransportErrorSource = "session" | "stream";
44637
+ type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
44458
44638
  type WorkerType = "classic" | "module";
44459
44639
  type WriteCommandType = "seek" | "truncate" | "write";
44460
44640
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
package/ts5.9/index.d.ts CHANGED
@@ -408,6 +408,10 @@ interface CloseEventInit extends EventInit {
408
408
  wasClean?: boolean;
409
409
  }
410
410
 
411
+ interface CloseWatcherOptions {
412
+ signal?: AbortSignal;
413
+ }
414
+
411
415
  interface CommandEventInit extends EventInit {
412
416
  command?: string;
413
417
  source?: Element | null;
@@ -3118,6 +3122,23 @@ interface WebTransportCloseInfo {
3118
3122
  reason?: string;
3119
3123
  }
3120
3124
 
3125
+ interface WebTransportConnectionStats {
3126
+ bytesReceived?: number;
3127
+ datagrams: WebTransportDatagramStats;
3128
+ minRtt?: DOMHighResTimeStamp;
3129
+ packetsLost?: number;
3130
+ packetsReceived?: number;
3131
+ packetsSent?: number;
3132
+ rttVariation?: DOMHighResTimeStamp;
3133
+ smoothedRtt?: DOMHighResTimeStamp;
3134
+ }
3135
+
3136
+ interface WebTransportDatagramStats {
3137
+ droppedIncoming?: number;
3138
+ expiredOutgoing?: number;
3139
+ lostOutgoing?: number;
3140
+ }
3141
+
3121
3142
  interface WebTransportErrorOptions {
3122
3143
  source?: WebTransportErrorSource;
3123
3144
  streamErrorCode?: number | null;
@@ -3136,6 +3157,11 @@ interface WebTransportOptions {
3136
3157
  serverCertificateHashes?: WebTransportHash[];
3137
3158
  }
3138
3159
 
3160
+ interface WebTransportReceiveStreamStats {
3161
+ bytesRead?: number;
3162
+ bytesReceived?: number;
3163
+ }
3164
+
3139
3165
  interface WebTransportSendOptions {
3140
3166
  sendOrder?: number;
3141
3167
  }
@@ -3143,6 +3169,12 @@ interface WebTransportSendOptions {
3143
3169
  interface WebTransportSendStreamOptions extends WebTransportSendOptions {
3144
3170
  }
3145
3171
 
3172
+ interface WebTransportSendStreamStats {
3173
+ bytesAcknowledged?: number;
3174
+ bytesSent?: number;
3175
+ bytesWritten?: number;
3176
+ }
3177
+
3146
3178
  interface WheelEventInit extends MouseEventInit {
3147
3179
  deltaMode?: number;
3148
3180
  deltaX?: number;
@@ -6815,7 +6847,11 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
6815
6847
  * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
6816
6848
  */
6817
6849
  backgroundSize: string;
6818
- /** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
6850
+ /**
6851
+ * The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute.
6852
+ *
6853
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/baseline-shift)
6854
+ */
6819
6855
  baselineShift: string;
6820
6856
  /**
6821
6857
  * The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
@@ -10793,6 +10829,50 @@ declare var CloseEvent: {
10793
10829
  new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
10794
10830
  };
10795
10831
 
10832
+ interface CloseWatcherEventMap {
10833
+ "cancel": Event;
10834
+ "close": Event;
10835
+ }
10836
+
10837
+ /**
10838
+ * The **`CloseWatcher`** interface allows a custom UI component with open and close semantics to respond to device-specific close actions in the same way as a built-in component.
10839
+ *
10840
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher)
10841
+ */
10842
+ interface CloseWatcher extends EventTarget {
10843
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/cancel_event) */
10844
+ oncancel: ((this: CloseWatcher, ev: Event) => any) | null;
10845
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close_event) */
10846
+ onclose: ((this: CloseWatcher, ev: Event) => any) | null;
10847
+ /**
10848
+ * The **`close()`** method of the CloseWatcher interface lets you skip any logic in the cancel event handler and immediately fire the close event. It then deactivates the close watcher as if destroy() was called.
10849
+ *
10850
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/close)
10851
+ */
10852
+ close(): void;
10853
+ /**
10854
+ * The **`destroy()`** method of the CloseWatcher interface deactivates the close watcher. This is intended to be called if the relevant UI element is torn down in some other way than being closed.
10855
+ *
10856
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/destroy)
10857
+ */
10858
+ destroy(): void;
10859
+ /**
10860
+ * The **`requestClose()`** method of the CloseWatcher interface fires a cancel event and if that event is not canceled with Event.preventDefault(), proceeds to fire a close event, and then finally deactivates the close watcher as if destroy() was called.
10861
+ *
10862
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseWatcher/requestClose)
10863
+ */
10864
+ requestClose(): void;
10865
+ addEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10866
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10867
+ removeEventListener<K extends keyof CloseWatcherEventMap>(type: K, listener: (this: CloseWatcher, ev: CloseWatcherEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10868
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10869
+ }
10870
+
10871
+ declare var CloseWatcher: {
10872
+ prototype: CloseWatcher;
10873
+ new(options?: CloseWatcherOptions): CloseWatcher;
10874
+ };
10875
+
10796
10876
  /**
10797
10877
  * The **`CommandEvent`** interface represents an event notifying the user when a button element with valid commandForElement and command attributes is about to invoke an interactive element.
10798
10878
  *
@@ -11231,6 +11311,7 @@ interface CustomElementRegistry {
11231
11311
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
11232
11312
  */
11233
11313
  getName(constructor: CustomElementConstructor): string | null;
11314
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/initialize) */
11234
11315
  initialize(root: Node): void;
11235
11316
  /**
11236
11317
  * The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
@@ -13229,6 +13310,7 @@ interface DocumentOrShadowRoot {
13229
13310
  readonly activeElement: Element | null;
13230
13311
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
13231
13312
  adoptedStyleSheets: CSSStyleSheet[];
13313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/customElementRegistry) */
13232
13314
  readonly customElementRegistry: CustomElementRegistry | null;
13233
13315
  /**
13234
13316
  * Returns document's fullscreen element.
@@ -13539,6 +13621,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
13539
13621
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
13540
13622
  */
13541
13623
  readonly currentCSSZoom: number;
13624
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/customElementRegistry) */
13542
13625
  readonly customElementRegistry: CustomElementRegistry | null;
13543
13626
  /**
13544
13627
  * The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
@@ -18763,6 +18846,12 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
18763
18846
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
18764
18847
  */
18765
18848
  checked: boolean;
18849
+ /**
18850
+ * The **`colorSpace`** property of the HTMLInputElement interface reflects the <input> element's colorspace attribute, which indicates whether the color space of the serialized CSS color is sRGB (the default) or display-p3. It is only relevant to color controls.
18851
+ *
18852
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/colorSpace)
18853
+ */
18854
+ colorSpace: string;
18766
18855
  /**
18767
18856
  * The **`defaultChecked`** property of the HTMLInputElement interface specifies the default checkedness state of the element. This property reflects the <input> element's checked attribute.
18768
18857
  *
@@ -19567,6 +19656,12 @@ interface HTMLMediaElement extends HTMLElement {
19567
19656
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
19568
19657
  */
19569
19658
  canPlayType(type: string): CanPlayTypeResult;
19659
+ /**
19660
+ * The **`captureStream()`** method of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element.
19661
+ *
19662
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/captureStream)
19663
+ */
19664
+ captureStream(): MediaStream;
19570
19665
  /**
19571
19666
  * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff.
19572
19667
  *
@@ -21304,6 +21399,7 @@ interface HTMLTemplateElement extends HTMLElement {
21304
21399
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
21305
21400
  */
21306
21401
  shadowRootClonable: boolean;
21402
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootCustomElementRegistry) */
21307
21403
  shadowRootCustomElementRegistry: string;
21308
21404
  /**
21309
21405
  * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
@@ -27896,6 +27992,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27896
27992
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
27897
27993
  */
27898
27994
  readonly decodedBodySize: number;
27995
+ /**
27996
+ * The **`deliveryType`** read-only property is a string indicating how the resource was delivered — for example from the cache or from a navigational prefetch.
27997
+ *
27998
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/deliveryType)
27999
+ */
28000
+ readonly deliveryType: string;
27899
28001
  /**
27900
28002
  * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
27901
28003
  *
@@ -27920,6 +28022,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27920
28022
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
27921
28023
  */
27922
28024
  readonly fetchStart: DOMHighResTimeStamp;
28025
+ /**
28026
+ * The **`finalResponseHeadersStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the final document response (for example, 200 OK) from the server.
28027
+ *
28028
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/finalResponseHeadersStart)
28029
+ */
28030
+ readonly finalResponseHeadersStart: DOMHighResTimeStamp;
28031
+ /**
28032
+ * The **`firstInterimResponseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the interim 1xx response (for example, 100 Continue or 103 Early Hints) from the server.
28033
+ *
28034
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/firstInterimResponseStart)
28035
+ */
28036
+ readonly firstInterimResponseStart: DOMHighResTimeStamp;
27923
28037
  /**
27924
28038
  * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
27925
28039
  *
@@ -40938,6 +41052,12 @@ interface WebTransport {
40938
41052
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
40939
41053
  */
40940
41054
  readonly closed: Promise<WebTransportCloseInfo>;
41055
+ /**
41056
+ * The **`congestionControl`** read-only property of the WebTransport interface indicates the application's preference for either high throughput or low-latency when sending data.
41057
+ *
41058
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/congestionControl)
41059
+ */
41060
+ readonly congestionControl: WebTransportCongestionControl;
40941
41061
  /**
40942
41062
  * The **`datagrams`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
40943
41063
  *
@@ -40956,12 +41076,19 @@ interface WebTransport {
40956
41076
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
40957
41077
  */
40958
41078
  readonly incomingUnidirectionalStreams: ReadableStream;
41079
+ readonly protocol: string;
40959
41080
  /**
40960
41081
  * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
40961
41082
  *
40962
41083
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
40963
41084
  */
40964
41085
  readonly ready: Promise<void>;
41086
+ /**
41087
+ * The **`reliability`** read-only property of the WebTransport interface indicates whether the connection supports reliable transports only, or whether it also supports unreliable transports (such as UDP).
41088
+ *
41089
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/reliability)
41090
+ */
41091
+ readonly reliability: WebTransportReliabilityMode;
40965
41092
  /**
40966
41093
  * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
40967
41094
  *
@@ -40980,6 +41107,12 @@ interface WebTransport {
40980
41107
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
40981
41108
  */
40982
41109
  createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
41110
+ /**
41111
+ * The **`getStats()`** method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.
41112
+ *
41113
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/getStats)
41114
+ */
41115
+ getStats(): Promise<WebTransportConnectionStats>;
40983
41116
  }
40984
41117
 
40985
41118
  declare var WebTransport: {
@@ -41095,6 +41228,52 @@ declare var WebTransportError: {
41095
41228
  new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
41096
41229
  };
41097
41230
 
41231
+ /**
41232
+ * The **`WebTransportReceiveStream`** interface of the WebTransport API is a ReadableStream that can be used to read from an incoming unidirectional or bidirectional WebTransport stream.
41233
+ * Available only in secure contexts.
41234
+ *
41235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream)
41236
+ */
41237
+ interface WebTransportReceiveStream extends ReadableStream {
41238
+ /**
41239
+ * The **`getStats()`** method of the WebTransportReceiveStream interface asynchronously returns an object containing statistics for the current stream.
41240
+ *
41241
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportReceiveStream/getStats)
41242
+ */
41243
+ getStats(): Promise<WebTransportReceiveStreamStats>;
41244
+ }
41245
+
41246
+ declare var WebTransportReceiveStream: {
41247
+ prototype: WebTransportReceiveStream;
41248
+ new(): WebTransportReceiveStream;
41249
+ };
41250
+
41251
+ /**
41252
+ * The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
41253
+ * Available only in secure contexts.
41254
+ *
41255
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
41256
+ */
41257
+ interface WebTransportSendStream extends WritableStream {
41258
+ /**
41259
+ * The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
41260
+ *
41261
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/sendOrder)
41262
+ */
41263
+ sendOrder: number;
41264
+ /**
41265
+ * The **`getStats()`** method of the WebTransportSendStream interface asynchronously returns an object containing statistics for the current stream.
41266
+ *
41267
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream/getStats)
41268
+ */
41269
+ getStats(): Promise<WebTransportSendStreamStats>;
41270
+ }
41271
+
41272
+ declare var WebTransportSendStream: {
41273
+ prototype: WebTransportSendStream;
41274
+ new(): WebTransportSendStream;
41275
+ };
41276
+
41098
41277
  /**
41099
41278
  * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
41100
41279
  *
@@ -44455,6 +44634,7 @@ type WakeLockType = "screen";
44455
44634
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
44456
44635
  type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
44457
44636
  type WebTransportErrorSource = "session" | "stream";
44637
+ type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
44458
44638
  type WorkerType = "classic" | "module";
44459
44639
  type WriteCommandType = "seek" | "truncate" | "write";
44460
44640
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";