@types/web 0.0.338 → 0.0.340

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/ts5.9/index.d.ts CHANGED
@@ -351,7 +351,7 @@ interface CSSNumericType {
351
351
  }
352
352
 
353
353
  interface CSSStyleSheetInit {
354
- baseURL?: string;
354
+ baseURL?: string | null;
355
355
  disabled?: boolean;
356
356
  media?: MediaList | string;
357
357
  }
@@ -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.
@@ -17013,7 +17096,7 @@ declare var HTMLAllCollection: {
17013
17096
  *
17014
17097
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)
17015
17098
  */
17016
- interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
17099
+ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils, HyperlinkElementUtils {
17017
17100
  /** @deprecated */
17018
17101
  charset: string;
17019
17102
  /** @deprecated */
@@ -17095,7 +17178,7 @@ declare var HTMLAnchorElement: {
17095
17178
  *
17096
17179
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
17097
17180
  */
17098
- interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
17181
+ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils, HyperlinkElementUtils {
17099
17182
  /**
17100
17183
  * The **`alt`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map's link. It reflects the <area> element's alt attribute.
17101
17184
  *
@@ -18347,30 +18430,6 @@ declare var HTMLHtmlElement: {
18347
18430
  };
18348
18431
 
18349
18432
  interface HTMLHyperlinkElementUtils {
18350
- /**
18351
- * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
18352
- *
18353
- * Can be set, to change the URL's fragment (ignores leading "#").
18354
- *
18355
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)
18356
- */
18357
- hash: string;
18358
- /**
18359
- * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
18360
- *
18361
- * Can be set, to change the URL's host and port.
18362
- *
18363
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)
18364
- */
18365
- host: string;
18366
- /**
18367
- * Returns the hyperlink's URL's host.
18368
- *
18369
- * Can be set, to change the URL's host.
18370
- *
18371
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)
18372
- */
18373
- hostname: string;
18374
18433
  /**
18375
18434
  * Returns the hyperlink's URL.
18376
18435
  *
@@ -18380,60 +18439,6 @@ interface HTMLHyperlinkElementUtils {
18380
18439
  */
18381
18440
  href: string;
18382
18441
  toString(): string;
18383
- /**
18384
- * Returns the hyperlink's URL's origin.
18385
- *
18386
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)
18387
- */
18388
- readonly origin: string;
18389
- /**
18390
- * Returns the hyperlink's URL's password.
18391
- *
18392
- * Can be set, to change the URL's password.
18393
- *
18394
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)
18395
- */
18396
- password: string;
18397
- /**
18398
- * Returns the hyperlink's URL's path.
18399
- *
18400
- * Can be set, to change the URL's path.
18401
- *
18402
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)
18403
- */
18404
- pathname: string;
18405
- /**
18406
- * Returns the hyperlink's URL's port.
18407
- *
18408
- * Can be set, to change the URL's port.
18409
- *
18410
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)
18411
- */
18412
- port: string;
18413
- /**
18414
- * Returns the hyperlink's URL's scheme.
18415
- *
18416
- * Can be set, to change the URL's scheme.
18417
- *
18418
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)
18419
- */
18420
- protocol: string;
18421
- /**
18422
- * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
18423
- *
18424
- * Can be set, to change the URL's query (ignores leading "?").
18425
- *
18426
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)
18427
- */
18428
- search: string;
18429
- /**
18430
- * Returns the hyperlink's URL's username.
18431
- *
18432
- * Can be set, to change the URL's username.
18433
- *
18434
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)
18435
- */
18436
- username: string;
18437
18442
  }
18438
18443
 
18439
18444
  /**
@@ -18763,6 +18768,12 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
18763
18768
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
18764
18769
  */
18765
18770
  checked: boolean;
18771
+ /**
18772
+ * 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.
18773
+ *
18774
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/colorSpace)
18775
+ */
18776
+ colorSpace: string;
18766
18777
  /**
18767
18778
  * 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
18779
  *
@@ -19567,6 +19578,12 @@ interface HTMLMediaElement extends HTMLElement {
19567
19578
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
19568
19579
  */
19569
19580
  canPlayType(type: string): CanPlayTypeResult;
19581
+ /**
19582
+ * 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.
19583
+ *
19584
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/captureStream)
19585
+ */
19586
+ captureStream(): MediaStream;
19570
19587
  /**
19571
19588
  * The **`HTMLMediaElement.fastSeek()`** method quickly seeks the media to the new time with precision tradeoff.
19572
19589
  *
@@ -21304,6 +21321,7 @@ interface HTMLTemplateElement extends HTMLElement {
21304
21321
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
21305
21322
  */
21306
21323
  shadowRootClonable: boolean;
21324
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootCustomElementRegistry) */
21307
21325
  shadowRootCustomElementRegistry: string;
21308
21326
  /**
21309
21327
  * The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
@@ -21951,6 +21969,87 @@ declare var History: {
21951
21969
  new(): History;
21952
21970
  };
21953
21971
 
21972
+ interface HyperlinkElementUtils {
21973
+ /**
21974
+ * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
21975
+ *
21976
+ * Can be set, to change the URL's fragment (ignores leading "#").
21977
+ *
21978
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)
21979
+ */
21980
+ hash: string;
21981
+ /**
21982
+ * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
21983
+ *
21984
+ * Can be set, to change the URL's host and port.
21985
+ *
21986
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)
21987
+ */
21988
+ host: string;
21989
+ /**
21990
+ * Returns the hyperlink's URL's host.
21991
+ *
21992
+ * Can be set, to change the URL's host.
21993
+ *
21994
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)
21995
+ */
21996
+ hostname: string;
21997
+ /**
21998
+ * Returns the hyperlink's URL's origin.
21999
+ *
22000
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)
22001
+ */
22002
+ readonly origin: string;
22003
+ /**
22004
+ * Returns the hyperlink's URL's password.
22005
+ *
22006
+ * Can be set, to change the URL's password.
22007
+ *
22008
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)
22009
+ */
22010
+ password: string;
22011
+ /**
22012
+ * Returns the hyperlink's URL's path.
22013
+ *
22014
+ * Can be set, to change the URL's path.
22015
+ *
22016
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)
22017
+ */
22018
+ pathname: string;
22019
+ /**
22020
+ * Returns the hyperlink's URL's port.
22021
+ *
22022
+ * Can be set, to change the URL's port.
22023
+ *
22024
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)
22025
+ */
22026
+ port: string;
22027
+ /**
22028
+ * Returns the hyperlink's URL's scheme.
22029
+ *
22030
+ * Can be set, to change the URL's scheme.
22031
+ *
22032
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)
22033
+ */
22034
+ protocol: string;
22035
+ /**
22036
+ * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
22037
+ *
22038
+ * Can be set, to change the URL's query (ignores leading "?").
22039
+ *
22040
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)
22041
+ */
22042
+ search: string;
22043
+ /**
22044
+ * Returns the hyperlink's URL's username.
22045
+ *
22046
+ * Can be set, to change the URL's username.
22047
+ *
22048
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)
22049
+ */
22050
+ username: string;
22051
+ }
22052
+
21954
22053
  /**
21955
22054
  * The **`IDBCursor`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
21956
22055
  *
@@ -27896,6 +27995,12 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27896
27995
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
27897
27996
  */
27898
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;
27899
28004
  /**
27900
28005
  * The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
27901
28006
  *
@@ -27920,6 +28025,18 @@ interface PerformanceResourceTiming extends PerformanceEntry {
27920
28025
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
27921
28026
  */
27922
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;
27923
28040
  /**
27924
28041
  * The **`initiatorType`** read-only property is a string representing web platform feature that initiated the resource load.
27925
28042
  *
@@ -40938,6 +41055,12 @@ interface WebTransport {
40938
41055
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
40939
41056
  */
40940
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;
40941
41064
  /**
40942
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.
40943
41066
  *
@@ -40956,12 +41079,19 @@ interface WebTransport {
40956
41079
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
40957
41080
  */
40958
41081
  readonly incomingUnidirectionalStreams: ReadableStream;
41082
+ readonly protocol: string;
40959
41083
  /**
40960
41084
  * The **`ready`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
40961
41085
  *
40962
41086
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
40963
41087
  */
40964
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;
40965
41095
  /**
40966
41096
  * The **`close()`** method of the WebTransport interface closes an ongoing WebTransport session.
40967
41097
  *
@@ -40980,6 +41110,12 @@ interface WebTransport {
40980
41110
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
40981
41111
  */
40982
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>;
40983
41119
  }
40984
41120
 
40985
41121
  declare var WebTransport: {
@@ -41095,6 +41231,52 @@ declare var WebTransportError: {
41095
41231
  new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
41096
41232
  };
41097
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
+
41098
41280
  /**
41099
41281
  * The **`WheelEvent`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
41100
41282
  *
@@ -44455,6 +44637,7 @@ type WakeLockType = "screen";
44455
44637
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
44456
44638
  type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
44457
44639
  type WebTransportErrorSource = "session" | "stream";
44640
+ type WebTransportReliabilityMode = "pending" | "reliable-only" | "supports-unreliable";
44458
44641
  type WorkerType = "classic" | "module";
44459
44642
  type WriteCommandType = "seek" | "truncate" | "write";
44460
44643
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";