@stencil/core 2.19.3 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/cli/config-flags.d.ts +16 -16
  2. package/cli/index.cjs +6 -4
  3. package/cli/index.js +6 -4
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +434 -251
  6. package/compiler/lib.dom.iterable.d.ts +7 -13
  7. package/compiler/lib.es2015.collection.d.ts +62 -1
  8. package/compiler/lib.es2015.promise.d.ts +9 -4
  9. package/compiler/lib.es2015.proxy.d.ts +91 -2
  10. package/compiler/lib.es2015.reflect.d.ts +25 -2
  11. package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
  12. package/compiler/lib.es2017.intl.d.ts +16 -1
  13. package/compiler/lib.es2019.d.ts +1 -0
  14. package/compiler/lib.es2019.intl.d.ts +25 -0
  15. package/compiler/lib.es2020.intl.d.ts +31 -6
  16. package/compiler/lib.es2021.intl.d.ts +11 -3
  17. package/compiler/lib.es2022.d.ts +1 -0
  18. package/compiler/lib.es2022.error.d.ts +2 -2
  19. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  20. package/compiler/lib.es5.d.ts +39 -14
  21. package/compiler/lib.esnext.intl.d.ts +5 -1
  22. package/compiler/lib.webworker.d.ts +318 -55
  23. package/compiler/lib.webworker.iterable.d.ts +11 -3
  24. package/compiler/package.json +1 -1
  25. package/compiler/stencil.d.ts +1 -23
  26. package/compiler/stencil.js +6307 -5165
  27. package/compiler/stencil.min.js +2 -2
  28. package/compiler/sys/in-memory-fs.d.ts +3 -3
  29. package/compiler/transpile.d.ts +32 -0
  30. package/dependencies.json +3 -1
  31. package/dev-server/client/app-error.d.ts +1 -1
  32. package/dev-server/client/index.js +1 -1
  33. package/dev-server/client/package.json +1 -1
  34. package/dev-server/connector.html +2 -2
  35. package/dev-server/index.js +1 -1
  36. package/dev-server/open-in-editor-api.js +1 -1
  37. package/dev-server/package.json +1 -1
  38. package/dev-server/server-process.js +2 -2
  39. package/internal/app-data/package.json +1 -1
  40. package/internal/client/css-shim.js +2 -2
  41. package/internal/client/dom.js +1 -1
  42. package/internal/client/index.js +8 -2
  43. package/internal/client/package.json +1 -1
  44. package/internal/client/patch-browser.js +1 -1
  45. package/internal/client/patch-esm.js +1 -1
  46. package/internal/client/polyfills/css-shim.js +1 -1
  47. package/internal/client/shadow-css.js +1 -1
  48. package/internal/hydrate/index.js +2 -2
  49. package/internal/hydrate/package.json +1 -1
  50. package/internal/hydrate/runner.d.ts +1 -1
  51. package/internal/hydrate/runner.js +4 -4
  52. package/internal/package.json +1 -1
  53. package/internal/stencil-private.d.ts +37 -37
  54. package/internal/stencil-public-compiler.d.ts +26 -26
  55. package/internal/stencil-public-runtime.d.ts +39 -3
  56. package/internal/testing/package.json +1 -1
  57. package/mock-doc/index.cjs +6 -6
  58. package/mock-doc/index.d.ts +2 -2
  59. package/mock-doc/index.js +6 -6
  60. package/mock-doc/package.json +1 -1
  61. package/package.json +17 -17
  62. package/screenshot/package.json +1 -1
  63. package/sys/node/autoprefixer.js +1 -1
  64. package/sys/node/glob.js +1 -1
  65. package/sys/node/index.js +29 -42
  66. package/sys/node/package.json +1 -1
  67. package/sys/node/prompts.js +1 -1
  68. package/sys/node/worker.js +1 -1
  69. package/testing/index.js +30 -22
  70. package/testing/jest/jest-preprocessor.d.ts +3 -3
  71. package/testing/package.json +1 -1
  72. package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
  73. package/testing/testing-utils.d.ts +1 -1
@@ -136,15 +136,14 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
136
136
 
137
137
  interface AuthenticationExtensionsClientInputs {
138
138
  appid?: string;
139
- appidExclude?: string;
140
139
  credProps?: boolean;
141
- uvm?: boolean;
140
+ hmacCreateSecret?: boolean;
142
141
  }
143
142
 
144
143
  interface AuthenticationExtensionsClientOutputs {
145
144
  appid?: boolean;
146
145
  credProps?: CredentialPropertiesOutput;
147
- uvm?: UvmEntries;
146
+ hmacCreateSecret?: boolean;
148
147
  }
149
148
 
150
149
  interface AuthenticatorSelectionCriteria {
@@ -373,7 +372,7 @@ interface DeviceOrientationEventInit extends EventInit {
373
372
  gamma?: number | null;
374
373
  }
375
374
 
376
- interface DisplayMediaStreamConstraints {
375
+ interface DisplayMediaStreamOptions {
377
376
  audio?: boolean | MediaTrackConstraints;
378
377
  video?: boolean | MediaTrackConstraints;
379
378
  }
@@ -590,6 +589,10 @@ interface IDBObjectStoreParameters {
590
589
  keyPath?: string | string[] | null;
591
590
  }
592
591
 
592
+ interface IDBTransactionOptions {
593
+ durability?: IDBTransactionDurability;
594
+ }
595
+
593
596
  interface IDBVersionChangeEventInit extends EventInit {
594
597
  newVersion?: number | null;
595
598
  oldVersion?: number;
@@ -721,19 +724,6 @@ interface LockOptions {
721
724
  steal?: boolean;
722
725
  }
723
726
 
724
- interface MIDIConnectionEventInit extends EventInit {
725
- port?: MIDIPort;
726
- }
727
-
728
- interface MIDIMessageEventInit extends EventInit {
729
- data?: Uint8Array;
730
- }
731
-
732
- interface MIDIOptions {
733
- software?: boolean;
734
- sysex?: boolean;
735
- }
736
-
737
727
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
738
728
  configuration?: MediaDecodingConfiguration;
739
729
  }
@@ -815,10 +805,6 @@ interface MediaQueryListEventInit extends EventInit {
815
805
  media?: string;
816
806
  }
817
807
 
818
- interface MediaRecorderErrorEventInit extends EventInit {
819
- error: DOMException;
820
- }
821
-
822
808
  interface MediaRecorderOptions {
823
809
  audioBitsPerSecond?: number;
824
810
  bitsPerSecond?: number;
@@ -828,9 +814,9 @@ interface MediaRecorderOptions {
828
814
 
829
815
  interface MediaSessionActionDetails {
830
816
  action: MediaSessionAction;
831
- fastSeek?: boolean | null;
832
- seekOffset?: number | null;
833
- seekTime?: number | null;
817
+ fastSeek?: boolean;
818
+ seekOffset?: number;
819
+ seekTime?: number;
834
820
  }
835
821
 
836
822
  interface MediaStreamAudioSourceOptions {
@@ -1130,6 +1116,10 @@ interface PermissionDescriptor {
1130
1116
  name: PermissionName;
1131
1117
  }
1132
1118
 
1119
+ interface PictureInPictureEventInit extends EventInit {
1120
+ pictureInPictureWindow: PictureInPictureWindow;
1121
+ }
1122
+
1133
1123
  interface PointerEventInit extends MouseEventInit {
1134
1124
  coalescedEvents?: PointerEvent[];
1135
1125
  height?: number;
@@ -1323,6 +1313,8 @@ interface RTCIceCandidatePairStats extends RTCStats {
1323
1313
  bytesReceived?: number;
1324
1314
  bytesSent?: number;
1325
1315
  currentRoundTripTime?: number;
1316
+ lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
1317
+ lastPacketSentTimestamp?: DOMHighResTimeStamp;
1326
1318
  localCandidateId: string;
1327
1319
  nominated?: boolean;
1328
1320
  remoteCandidateId: string;
@@ -1337,18 +1329,47 @@ interface RTCIceCandidatePairStats extends RTCStats {
1337
1329
 
1338
1330
  interface RTCIceServer {
1339
1331
  credential?: string;
1340
- credentialType?: RTCIceCredentialType;
1341
1332
  urls: string | string[];
1342
1333
  username?: string;
1343
1334
  }
1344
1335
 
1345
1336
  interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
1337
+ audioLevel?: number;
1338
+ bytesReceived?: number;
1339
+ concealedSamples?: number;
1340
+ concealmentEvents?: number;
1341
+ decoderImplementation?: string;
1342
+ estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
1343
+ fecPacketsDiscarded?: number;
1344
+ fecPacketsReceived?: number;
1346
1345
  firCount?: number;
1346
+ frameHeight?: number;
1347
+ frameWidth?: number;
1347
1348
  framesDecoded?: number;
1349
+ framesDropped?: number;
1350
+ framesPerSecond?: number;
1351
+ framesReceived?: number;
1352
+ headerBytesReceived?: number;
1353
+ insertedSamplesForDeceleration?: number;
1354
+ jitterBufferDelay?: number;
1355
+ jitterBufferEmittedCount?: number;
1356
+ keyFramesDecoded?: number;
1357
+ kind: string;
1358
+ lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
1348
1359
  nackCount?: number;
1360
+ packetsDiscarded?: number;
1349
1361
  pliCount?: number;
1350
1362
  qpSum?: number;
1351
1363
  remoteId?: string;
1364
+ removedSamplesForAcceleration?: number;
1365
+ silentConcealedSamples?: number;
1366
+ totalAudioEnergy?: number;
1367
+ totalDecodeTime?: number;
1368
+ totalInterFrameDelay?: number;
1369
+ totalProcessingDelay?: number;
1370
+ totalSamplesDuration?: number;
1371
+ totalSamplesReceived?: number;
1372
+ totalSquaredInterFrameDelay?: number;
1352
1373
  }
1353
1374
 
1354
1375
  interface RTCLocalSessionDescriptionInit {
@@ -1367,11 +1388,27 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions {
1367
1388
 
1368
1389
  interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
1369
1390
  firCount?: number;
1391
+ frameHeight?: number;
1392
+ frameWidth?: number;
1370
1393
  framesEncoded?: number;
1394
+ framesPerSecond?: number;
1395
+ framesSent?: number;
1396
+ headerBytesSent?: number;
1397
+ hugeFramesSent?: number;
1398
+ keyFramesEncoded?: number;
1399
+ mediaSourceId?: string;
1371
1400
  nackCount?: number;
1372
1401
  pliCount?: number;
1373
1402
  qpSum?: number;
1403
+ qualityLimitationResolutionChanges?: number;
1374
1404
  remoteId?: string;
1405
+ retransmittedBytesSent?: number;
1406
+ retransmittedPacketsSent?: number;
1407
+ rid?: string;
1408
+ targetBitrate?: number;
1409
+ totalEncodeTime?: number;
1410
+ totalEncodedBytesTarget?: number;
1411
+ totalPacketSendDelay?: number;
1375
1412
  }
1376
1413
 
1377
1414
  interface RTCPeerConnectionIceErrorEventInit extends EventInit {
@@ -1389,7 +1426,6 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
1389
1426
 
1390
1427
  interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
1391
1428
  jitter?: number;
1392
- packetsDiscarded?: number;
1393
1429
  packetsLost?: number;
1394
1430
  packetsReceived?: number;
1395
1431
  }
@@ -1433,6 +1469,8 @@ interface RTCRtpContributingSource {
1433
1469
  interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
1434
1470
  active?: boolean;
1435
1471
  maxBitrate?: number;
1472
+ maxFramerate?: number;
1473
+ networkPriority?: RTCPriorityType;
1436
1474
  priority?: RTCPriorityType;
1437
1475
  scaleResolutionDownBy?: number;
1438
1476
  }
@@ -1508,18 +1546,26 @@ interface RTCTransportStats extends RTCStats {
1508
1546
  dtlsState: RTCDtlsTransportState;
1509
1547
  localCertificateId?: string;
1510
1548
  remoteCertificateId?: string;
1511
- rtcpTransportStatsId?: string;
1512
1549
  selectedCandidatePairId?: string;
1513
1550
  srtpCipher?: string;
1514
1551
  tlsVersion?: string;
1515
1552
  }
1516
1553
 
1517
- interface ReadableStreamDefaultReadDoneResult {
1554
+ interface ReadableStreamGetReaderOptions {
1555
+ /**
1556
+ * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
1557
+ *
1558
+ * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
1559
+ */
1560
+ mode?: ReadableStreamReaderMode;
1561
+ }
1562
+
1563
+ interface ReadableStreamReadDoneResult<T> {
1518
1564
  done: true;
1519
- value?: undefined;
1565
+ value?: T;
1520
1566
  }
1521
1567
 
1522
- interface ReadableStreamDefaultReadValueResult<T> {
1568
+ interface ReadableStreamReadValueResult<T> {
1523
1569
  done: false;
1524
1570
  value: T;
1525
1571
  }
@@ -1800,6 +1846,21 @@ interface ULongRange {
1800
1846
  min?: number;
1801
1847
  }
1802
1848
 
1849
+ interface UnderlyingByteSource {
1850
+ autoAllocateChunkSize?: number;
1851
+ cancel?: UnderlyingSourceCancelCallback;
1852
+ pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
1853
+ start?: (controller: ReadableByteStreamController) => any;
1854
+ type: "bytes";
1855
+ }
1856
+
1857
+ interface UnderlyingDefaultSource<R = any> {
1858
+ cancel?: UnderlyingSourceCancelCallback;
1859
+ pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
1860
+ start?: (controller: ReadableStreamDefaultController<R>) => any;
1861
+ type?: undefined;
1862
+ }
1863
+
1803
1864
  interface UnderlyingSink<W = any> {
1804
1865
  abort?: UnderlyingSinkAbortCallback;
1805
1866
  close?: UnderlyingSinkCloseCallback;
@@ -1809,17 +1870,31 @@ interface UnderlyingSink<W = any> {
1809
1870
  }
1810
1871
 
1811
1872
  interface UnderlyingSource<R = any> {
1873
+ autoAllocateChunkSize?: number;
1812
1874
  cancel?: UnderlyingSourceCancelCallback;
1813
1875
  pull?: UnderlyingSourcePullCallback<R>;
1814
1876
  start?: UnderlyingSourceStartCallback<R>;
1815
- type?: undefined;
1877
+ type?: ReadableStreamType;
1878
+ }
1879
+
1880
+ interface ValidityStateFlags {
1881
+ badInput?: boolean;
1882
+ customError?: boolean;
1883
+ patternMismatch?: boolean;
1884
+ rangeOverflow?: boolean;
1885
+ rangeUnderflow?: boolean;
1886
+ stepMismatch?: boolean;
1887
+ tooLong?: boolean;
1888
+ tooShort?: boolean;
1889
+ typeMismatch?: boolean;
1890
+ valueMissing?: boolean;
1816
1891
  }
1817
1892
 
1818
1893
  interface VideoColorSpaceInit {
1819
- fullRange?: boolean;
1820
- matrix?: VideoMatrixCoefficients;
1821
- primaries?: VideoColorPrimaries;
1822
- transfer?: VideoTransferCharacteristics;
1894
+ fullRange?: boolean | null;
1895
+ matrix?: VideoMatrixCoefficients | null;
1896
+ primaries?: VideoColorPrimaries | null;
1897
+ transfer?: VideoTransferCharacteristics | null;
1823
1898
  }
1824
1899
 
1825
1900
  interface VideoConfiguration {
@@ -1834,7 +1909,7 @@ interface VideoConfiguration {
1834
1909
  width: number;
1835
1910
  }
1836
1911
 
1837
- interface VideoFrameMetadata {
1912
+ interface VideoFrameCallbackMetadata {
1838
1913
  captureTime?: DOMHighResTimeStamp;
1839
1914
  expectedDisplayTime: DOMHighResTimeStamp;
1840
1915
  height: number;
@@ -1927,12 +2002,14 @@ interface ARIAMixin {
1927
2002
  ariaChecked: string | null;
1928
2003
  ariaColCount: string | null;
1929
2004
  ariaColIndex: string | null;
2005
+ ariaColIndexText: string | null;
1930
2006
  ariaColSpan: string | null;
1931
2007
  ariaCurrent: string | null;
1932
2008
  ariaDisabled: string | null;
1933
2009
  ariaExpanded: string | null;
1934
2010
  ariaHasPopup: string | null;
1935
2011
  ariaHidden: string | null;
2012
+ ariaInvalid: string | null;
1936
2013
  ariaKeyShortcuts: string | null;
1937
2014
  ariaLabel: string | null;
1938
2015
  ariaLevel: string | null;
@@ -1949,6 +2026,7 @@ interface ARIAMixin {
1949
2026
  ariaRoleDescription: string | null;
1950
2027
  ariaRowCount: string | null;
1951
2028
  ariaRowIndex: string | null;
2029
+ ariaRowIndexText: string | null;
1952
2030
  ariaRowSpan: string | null;
1953
2031
  ariaSelected: string | null;
1954
2032
  ariaSetSize: string | null;
@@ -1957,6 +2035,7 @@ interface ARIAMixin {
1957
2035
  ariaValueMin: string | null;
1958
2036
  ariaValueNow: string | null;
1959
2037
  ariaValueText: string | null;
2038
+ role: string | null;
1960
2039
  }
1961
2040
 
1962
2041
  /** A controller object that allows you to abort one or more DOM requests as and when desired. */
@@ -1992,7 +2071,8 @@ interface AbortSignal extends EventTarget {
1992
2071
  declare var AbortSignal: {
1993
2072
  prototype: AbortSignal;
1994
2073
  new(): AbortSignal;
1995
- // abort(): AbortSignal; - To be re-added in the future
2074
+ abort(reason?: any): AbortSignal;
2075
+ timeout(milliseconds: number): AbortSignal;
1996
2076
  };
1997
2077
 
1998
2078
  interface AbstractRange {
@@ -2127,7 +2207,7 @@ declare var AnimationPlaybackEvent: {
2127
2207
  };
2128
2208
 
2129
2209
  interface AnimationTimeline {
2130
- readonly currentTime: number | null;
2210
+ readonly currentTime: CSSNumberish | null;
2131
2211
  }
2132
2212
 
2133
2213
  declare var AnimationTimeline: {
@@ -2143,6 +2223,7 @@ interface Attr extends Node {
2143
2223
  readonly ownerDocument: Document;
2144
2224
  readonly ownerElement: Element | null;
2145
2225
  readonly prefix: string | null;
2226
+ /** @deprecated */
2146
2227
  readonly specified: boolean;
2147
2228
  value: string;
2148
2229
  }
@@ -2191,6 +2272,7 @@ declare var AudioBufferSourceNode: {
2191
2272
  /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
2192
2273
  interface AudioContext extends BaseAudioContext {
2193
2274
  readonly baseLatency: number;
2275
+ readonly outputLatency: number;
2194
2276
  close(): Promise<void>;
2195
2277
  createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
2196
2278
  createMediaStreamDestination(): MediaStreamAudioDestinationNode;
@@ -2377,6 +2459,10 @@ declare var AuthenticatorAssertionResponse: {
2377
2459
  /** Available only in secure contexts. */
2378
2460
  interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
2379
2461
  readonly attestationObject: ArrayBuffer;
2462
+ getAuthenticatorData(): ArrayBuffer;
2463
+ getPublicKey(): ArrayBuffer | null;
2464
+ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
2465
+ getTransports(): string[];
2380
2466
  }
2381
2467
 
2382
2468
  declare var AuthenticatorAttestationResponse: {
@@ -2567,7 +2653,7 @@ declare var CSSAnimation: {
2567
2653
 
2568
2654
  /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
2569
2655
  interface CSSConditionRule extends CSSGroupingRule {
2570
- conditionText: string;
2656
+ readonly conditionText: string;
2571
2657
  }
2572
2658
 
2573
2659
  declare var CSSConditionRule: {
@@ -2575,6 +2661,14 @@ declare var CSSConditionRule: {
2575
2661
  new(): CSSConditionRule;
2576
2662
  };
2577
2663
 
2664
+ interface CSSContainerRule extends CSSConditionRule {
2665
+ }
2666
+
2667
+ declare var CSSContainerRule: {
2668
+ prototype: CSSContainerRule;
2669
+ new(): CSSContainerRule;
2670
+ };
2671
+
2578
2672
  interface CSSCounterStyleRule extends CSSRule {
2579
2673
  additiveSymbols: string;
2580
2674
  fallback: string;
@@ -2603,6 +2697,18 @@ declare var CSSFontFaceRule: {
2603
2697
  new(): CSSFontFaceRule;
2604
2698
  };
2605
2699
 
2700
+ interface CSSFontPaletteValuesRule extends CSSRule {
2701
+ readonly basePalette: string;
2702
+ readonly fontFamily: string;
2703
+ readonly name: string;
2704
+ readonly overrideColors: string;
2705
+ }
2706
+
2707
+ declare var CSSFontPaletteValuesRule: {
2708
+ prototype: CSSFontPaletteValuesRule;
2709
+ new(): CSSFontPaletteValuesRule;
2710
+ };
2711
+
2606
2712
  /** Any CSS at-rule that contains other rules nested within it. */
2607
2713
  interface CSSGroupingRule extends CSSRule {
2608
2714
  readonly cssRules: CSSRuleList;
@@ -2617,6 +2723,7 @@ declare var CSSGroupingRule: {
2617
2723
 
2618
2724
  interface CSSImportRule extends CSSRule {
2619
2725
  readonly href: string;
2726
+ readonly layerName: string | null;
2620
2727
  readonly media: MediaList;
2621
2728
  readonly styleSheet: CSSStyleSheet;
2622
2729
  }
@@ -2651,6 +2758,24 @@ declare var CSSKeyframesRule: {
2651
2758
  new(): CSSKeyframesRule;
2652
2759
  };
2653
2760
 
2761
+ interface CSSLayerBlockRule extends CSSGroupingRule {
2762
+ readonly name: string;
2763
+ }
2764
+
2765
+ declare var CSSLayerBlockRule: {
2766
+ prototype: CSSLayerBlockRule;
2767
+ new(): CSSLayerBlockRule;
2768
+ };
2769
+
2770
+ interface CSSLayerStatementRule extends CSSRule {
2771
+ readonly nameList: ReadonlyArray<string>;
2772
+ }
2773
+
2774
+ declare var CSSLayerStatementRule: {
2775
+ prototype: CSSLayerStatementRule;
2776
+ new(): CSSLayerStatementRule;
2777
+ };
2778
+
2654
2779
  /** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
2655
2780
  interface CSSMediaRule extends CSSConditionRule {
2656
2781
  readonly media: MediaList;
@@ -2748,6 +2873,7 @@ interface CSSStyleDeclaration {
2748
2873
  animationTimingFunction: string;
2749
2874
  appearance: string;
2750
2875
  aspectRatio: string;
2876
+ backdropFilter: string;
2751
2877
  backfaceVisibility: string;
2752
2878
  background: string;
2753
2879
  backgroundAttachment: string;
@@ -2852,8 +2978,10 @@ interface CSSStyleDeclaration {
2852
2978
  columnWidth: string;
2853
2979
  columns: string;
2854
2980
  contain: string;
2981
+ container: string;
2982
+ containerName: string;
2983
+ containerType: string;
2855
2984
  content: string;
2856
- contentVisibility: string;
2857
2985
  counterIncrement: string;
2858
2986
  counterReset: string;
2859
2987
  counterSet: string;
@@ -2883,6 +3011,7 @@ interface CSSStyleDeclaration {
2883
3011
  fontFeatureSettings: string;
2884
3012
  fontKerning: string;
2885
3013
  fontOpticalSizing: string;
3014
+ fontPalette: string;
2886
3015
  fontSize: string;
2887
3016
  fontSizeAdjust: string;
2888
3017
  fontStretch: string;
@@ -2920,6 +3049,7 @@ interface CSSStyleDeclaration {
2920
3049
  gridTemplateColumns: string;
2921
3050
  gridTemplateRows: string;
2922
3051
  height: string;
3052
+ hyphenateCharacter: string;
2923
3053
  hyphens: string;
2924
3054
  /** @deprecated */
2925
3055
  imageOrientation: string;
@@ -2996,6 +3126,7 @@ interface CSSStyleDeclaration {
2996
3126
  outlineWidth: string;
2997
3127
  overflow: string;
2998
3128
  overflowAnchor: string;
3129
+ overflowClipMargin: string;
2999
3130
  overflowWrap: string;
3000
3131
  overflowX: string;
3001
3132
  overflowY: string;
@@ -3227,6 +3358,8 @@ interface CSSStyleDeclaration {
3227
3358
  /** @deprecated This is a legacy alias of `perspectiveOrigin`. */
3228
3359
  webkitPerspectiveOrigin: string;
3229
3360
  webkitTextFillColor: string;
3361
+ /** @deprecated This is a legacy alias of `textSizeAdjust`. */
3362
+ webkitTextSizeAdjust: string;
3230
3363
  webkitTextStroke: string;
3231
3364
  webkitTextStrokeColor: string;
3232
3365
  webkitTextStrokeWidth: string;
@@ -3294,6 +3427,8 @@ interface CSSStyleSheet extends StyleSheet {
3294
3427
  insertRule(rule: string, index?: number): number;
3295
3428
  /** @deprecated */
3296
3429
  removeRule(index?: number): void;
3430
+ replace(text: string): Promise<CSSStyleSheet>;
3431
+ replaceSync(text: string): void;
3297
3432
  }
3298
3433
 
3299
3434
  declare var CSSStyleSheet: {
@@ -3449,6 +3584,7 @@ interface CanvasPath {
3449
3584
  moveTo(x: number, y: number): void;
3450
3585
  quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
3451
3586
  rect(x: number, y: number, w: number, h: number): void;
3587
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
3452
3588
  }
3453
3589
 
3454
3590
  interface CanvasPathDrawingStyles {
@@ -3510,6 +3646,7 @@ interface CanvasText {
3510
3646
  interface CanvasTextDrawingStyles {
3511
3647
  direction: CanvasDirection;
3512
3648
  font: string;
3649
+ fontKerning: CanvasFontKerning;
3513
3650
  textAlign: CanvasTextAlign;
3514
3651
  textBaseline: CanvasTextBaseline;
3515
3652
  }
@@ -3777,6 +3914,7 @@ declare var CustomEvent: {
3777
3914
 
3778
3915
  /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
3779
3916
  interface DOMException extends Error {
3917
+ /** @deprecated */
3780
3918
  readonly code: number;
3781
3919
  readonly message: string;
3782
3920
  readonly name: string;
@@ -4370,7 +4508,10 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4370
4508
  readonly documentElement: HTMLElement;
4371
4509
  /** Returns document's URL. */
4372
4510
  readonly documentURI: string;
4373
- /** Sets or gets the security domain of the document. */
4511
+ /**
4512
+ * Sets or gets the security domain of the document.
4513
+ * @deprecated
4514
+ */
4374
4515
  domain: string;
4375
4516
  /** Retrieves a collection of all embed objects in the document. */
4376
4517
  readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
@@ -4521,12 +4662,9 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4521
4662
  createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
4522
4663
  createEvent(eventInterface: "InputEvent"): InputEvent;
4523
4664
  createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
4524
- createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
4525
- createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
4526
4665
  createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
4527
4666
  createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
4528
4667
  createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
4529
- createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
4530
4668
  createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
4531
4669
  createEvent(eventInterface: "MessageEvent"): MessageEvent;
4532
4670
  createEvent(eventInterface: "MouseEvent"): MouseEvent;
@@ -4537,6 +4675,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4537
4675
  createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
4538
4676
  createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
4539
4677
  createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
4678
+ createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
4540
4679
  createEvent(eventInterface: "PointerEvent"): PointerEvent;
4541
4680
  createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
4542
4681
  createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
@@ -4655,6 +4794,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4655
4794
  /**
4656
4795
  * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
4657
4796
  * @param commandId String that specifies a command identifier.
4797
+ * @deprecated
4658
4798
  */
4659
4799
  queryCommandIndeterm(commandId: string): boolean;
4660
4800
  /**
@@ -4672,6 +4812,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4672
4812
  /**
4673
4813
  * Returns the current value of the document, range, or current selection for the given command.
4674
4814
  * @param commandId String that specifies a command identifier.
4815
+ * @deprecated
4675
4816
  */
4676
4817
  queryCommandValue(commandId: string): string;
4677
4818
  /** @deprecated */
@@ -4734,6 +4875,7 @@ interface DocumentOrShadowRoot {
4734
4875
  * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
4735
4876
  */
4736
4877
  readonly activeElement: Element | null;
4878
+ adoptedStyleSheets: CSSStyleSheet[];
4737
4879
  /** Returns document's fullscreen element. */
4738
4880
  readonly fullscreenElement: Element | null;
4739
4881
  readonly pictureInPictureElement: Element | null;
@@ -4829,6 +4971,13 @@ interface EXT_sRGB {
4829
4971
  interface EXT_shader_texture_lod {
4830
4972
  }
4831
4973
 
4974
+ interface EXT_texture_compression_bptc {
4975
+ readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
4976
+ readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
4977
+ readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
4978
+ readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
4979
+ }
4980
+
4832
4981
  interface EXT_texture_compression_rgtc {
4833
4982
  readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
4834
4983
  readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
@@ -4842,6 +4991,17 @@ interface EXT_texture_filter_anisotropic {
4842
4991
  readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
4843
4992
  }
4844
4993
 
4994
+ interface EXT_texture_norm16 {
4995
+ readonly R16_EXT: GLenum;
4996
+ readonly R16_SNORM_EXT: GLenum;
4997
+ readonly RG16_EXT: GLenum;
4998
+ readonly RG16_SNORM_EXT: GLenum;
4999
+ readonly RGB16_EXT: GLenum;
5000
+ readonly RGB16_SNORM_EXT: GLenum;
5001
+ readonly RGBA16_EXT: GLenum;
5002
+ readonly RGBA16_SNORM_EXT: GLenum;
5003
+ }
5004
+
4845
5005
  interface ElementEventMap {
4846
5006
  "fullscreenchange": Event;
4847
5007
  "fullscreenerror": Event;
@@ -4981,14 +5141,24 @@ interface ElementInternals extends ARIAMixin {
4981
5141
  readonly labels: NodeList;
4982
5142
  /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
4983
5143
  readonly shadowRoot: ShadowRoot | null;
5144
+ /** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */
5145
+ readonly validationMessage: string;
5146
+ /** Returns the ValidityState object for internals's target element. */
5147
+ readonly validity: ValidityState;
4984
5148
  /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
4985
5149
  readonly willValidate: boolean;
5150
+ /** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */
5151
+ checkValidity(): boolean;
5152
+ /** Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. */
5153
+ reportValidity(): boolean;
4986
5154
  /**
4987
5155
  * Sets both the state and submission value of internals's target element to value.
4988
5156
  *
4989
5157
  * If value is null, the element won't participate in form submission.
4990
5158
  */
4991
5159
  setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
5160
+ /** Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. */
5161
+ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
4992
5162
  }
4993
5163
 
4994
5164
  declare var ElementInternals: {
@@ -5014,6 +5184,7 @@ declare var ErrorEvent: {
5014
5184
  interface Event {
5015
5185
  /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
5016
5186
  readonly bubbles: boolean;
5187
+ /** @deprecated */
5017
5188
  cancelBubble: boolean;
5018
5189
  /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
5019
5190
  readonly cancelable: boolean;
@@ -5550,6 +5721,7 @@ interface GlobalEventHandlersEventMap {
5550
5721
  "auxclick": MouseEvent;
5551
5722
  "beforeinput": InputEvent;
5552
5723
  "blur": FocusEvent;
5724
+ "cancel": Event;
5553
5725
  "canplay": Event;
5554
5726
  "canplaythrough": Event;
5555
5727
  "change": Event;
@@ -5650,11 +5822,13 @@ interface GlobalEventHandlers {
5650
5822
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
5651
5823
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
5652
5824
  onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
5825
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
5653
5826
  /**
5654
5827
  * Fires when the object loses the input focus.
5655
5828
  * @param ev The focus event.
5656
5829
  */
5657
5830
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
5831
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5658
5832
  /**
5659
5833
  * Occurs when playback is possible, but would require further buffering.
5660
5834
  * @param ev The event.
@@ -6072,7 +6246,6 @@ declare var HTMLBaseElement: {
6072
6246
  };
6073
6247
 
6074
6248
  interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
6075
- "orientationchange": Event;
6076
6249
  }
6077
6250
 
6078
6251
  /** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
@@ -6086,8 +6259,6 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
6086
6259
  /** @deprecated */
6087
6260
  link: string;
6088
6261
  /** @deprecated */
6089
- onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
6090
- /** @deprecated */
6091
6262
  text: string;
6092
6263
  /** @deprecated */
6093
6264
  vLink: string;
@@ -6171,6 +6342,7 @@ interface HTMLCanvasElement extends HTMLElement {
6171
6342
  * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
6172
6343
  */
6173
6344
  toDataURL(type?: string, quality?: any): string;
6345
+ transferControlToOffscreen(): OffscreenCanvas;
6174
6346
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6175
6347
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6176
6348
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -6346,6 +6518,7 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
6346
6518
  dir: string;
6347
6519
  draggable: boolean;
6348
6520
  hidden: boolean;
6521
+ inert: boolean;
6349
6522
  innerText: string;
6350
6523
  lang: string;
6351
6524
  readonly offsetHeight: number;
@@ -7009,6 +7182,7 @@ interface HTMLInputElement extends HTMLElement {
7009
7182
  * @param direction The direction in which the selection is performed.
7010
7183
  */
7011
7184
  setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
7185
+ showPicker(): void;
7012
7186
  /**
7013
7187
  * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
7014
7188
  * @param n Value to decrement the value by.
@@ -7236,6 +7410,7 @@ interface HTMLMediaElement extends HTMLElement {
7236
7410
  readonly played: TimeRanges;
7237
7411
  /** Gets or sets a value indicating what data should be preloaded, if any. */
7238
7412
  preload: "none" | "metadata" | "auto" | "";
7413
+ preservesPitch: boolean;
7239
7414
  readonly readyState: number;
7240
7415
  readonly remote: RemotePlayback;
7241
7416
  /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
@@ -7602,16 +7777,25 @@ declare var HTMLParagraphElement: {
7602
7777
  new(): HTMLParagraphElement;
7603
7778
  };
7604
7779
 
7605
- /** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
7780
+ /**
7781
+ * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
7782
+ * @deprecated
7783
+ */
7606
7784
  interface HTMLParamElement extends HTMLElement {
7607
- /** Sets or retrieves the name of an input parameter for an element. */
7785
+ /**
7786
+ * Sets or retrieves the name of an input parameter for an element.
7787
+ * @deprecated
7788
+ */
7608
7789
  name: string;
7609
7790
  /**
7610
7791
  * Sets or retrieves the content type of the resource designated by the value attribute.
7611
7792
  * @deprecated
7612
7793
  */
7613
7794
  type: string;
7614
- /** Sets or retrieves the value of an input parameter for an element. */
7795
+ /**
7796
+ * Sets or retrieves the value of an input parameter for an element.
7797
+ * @deprecated
7798
+ */
7615
7799
  value: string;
7616
7800
  /**
7617
7801
  * Sets or retrieves the data type of the value attribute.
@@ -7624,6 +7808,7 @@ interface HTMLParamElement extends HTMLElement {
7624
7808
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
7625
7809
  }
7626
7810
 
7811
+ /** @deprecated */
7627
7812
  declare var HTMLParamElement: {
7628
7813
  prototype: HTMLParamElement;
7629
7814
  new(): HTMLParamElement;
@@ -8517,7 +8702,7 @@ interface IDBDatabase extends EventTarget {
8517
8702
  */
8518
8703
  deleteObjectStore(name: string): void;
8519
8704
  /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
8520
- transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
8705
+ transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
8521
8706
  addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8522
8707
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
8523
8708
  removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8741,13 +8926,13 @@ declare var IDBObjectStore: {
8741
8926
  };
8742
8927
 
8743
8928
  interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
8744
- "blocked": Event;
8929
+ "blocked": IDBVersionChangeEvent;
8745
8930
  "upgradeneeded": IDBVersionChangeEvent;
8746
8931
  }
8747
8932
 
8748
8933
  /** Also inherits methods from its parents IDBRequest and EventTarget. */
8749
8934
  interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
8750
- onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
8935
+ onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
8751
8936
  onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
8752
8937
  addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
8753
8938
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8872,7 +9057,7 @@ declare var ImageBitmap: {
8872
9057
 
8873
9058
  interface ImageBitmapRenderingContext {
8874
9059
  /** Returns the canvas element that the context is bound to. */
8875
- readonly canvas: HTMLCanvasElement;
9060
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas;
8876
9061
  /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
8877
9062
  transferFromImageBitmap(bitmap: ImageBitmap | null): void;
8878
9063
  }
@@ -8903,6 +9088,7 @@ interface InnerHTML {
8903
9088
  innerHTML: string;
8904
9089
  }
8905
9090
 
9091
+ /** Available only in secure contexts. */
8906
9092
  interface InputDeviceInfo extends MediaDeviceInfo {
8907
9093
  }
8908
9094
 
@@ -9103,126 +9289,6 @@ declare var LockManager: {
9103
9289
  new(): LockManager;
9104
9290
  };
9105
9291
 
9106
- interface MIDIAccessEventMap {
9107
- "statechange": Event;
9108
- }
9109
-
9110
- /** Available only in secure contexts. */
9111
- interface MIDIAccess extends EventTarget {
9112
- readonly inputs: MIDIInputMap;
9113
- onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
9114
- readonly outputs: MIDIOutputMap;
9115
- readonly sysexEnabled: boolean;
9116
- addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9117
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9118
- removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9119
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9120
- }
9121
-
9122
- declare var MIDIAccess: {
9123
- prototype: MIDIAccess;
9124
- new(): MIDIAccess;
9125
- };
9126
-
9127
- /** Available only in secure contexts. */
9128
- interface MIDIConnectionEvent extends Event {
9129
- readonly port: MIDIPort;
9130
- }
9131
-
9132
- declare var MIDIConnectionEvent: {
9133
- prototype: MIDIConnectionEvent;
9134
- new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
9135
- };
9136
-
9137
- interface MIDIInputEventMap extends MIDIPortEventMap {
9138
- "midimessage": Event;
9139
- }
9140
-
9141
- /** Available only in secure contexts. */
9142
- interface MIDIInput extends MIDIPort {
9143
- onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
9144
- addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9145
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9146
- removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9147
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9148
- }
9149
-
9150
- declare var MIDIInput: {
9151
- prototype: MIDIInput;
9152
- new(): MIDIInput;
9153
- };
9154
-
9155
- /** Available only in secure contexts. */
9156
- interface MIDIInputMap {
9157
- forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
9158
- }
9159
-
9160
- declare var MIDIInputMap: {
9161
- prototype: MIDIInputMap;
9162
- new(): MIDIInputMap;
9163
- };
9164
-
9165
- /** Available only in secure contexts. */
9166
- interface MIDIMessageEvent extends Event {
9167
- readonly data: Uint8Array;
9168
- }
9169
-
9170
- declare var MIDIMessageEvent: {
9171
- prototype: MIDIMessageEvent;
9172
- new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
9173
- };
9174
-
9175
- /** Available only in secure contexts. */
9176
- interface MIDIOutput extends MIDIPort {
9177
- send(data: number[], timestamp?: DOMHighResTimeStamp): void;
9178
- addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9179
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9180
- removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9181
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9182
- }
9183
-
9184
- declare var MIDIOutput: {
9185
- prototype: MIDIOutput;
9186
- new(): MIDIOutput;
9187
- };
9188
-
9189
- /** Available only in secure contexts. */
9190
- interface MIDIOutputMap {
9191
- forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
9192
- }
9193
-
9194
- declare var MIDIOutputMap: {
9195
- prototype: MIDIOutputMap;
9196
- new(): MIDIOutputMap;
9197
- };
9198
-
9199
- interface MIDIPortEventMap {
9200
- "statechange": Event;
9201
- }
9202
-
9203
- /** Available only in secure contexts. */
9204
- interface MIDIPort extends EventTarget {
9205
- readonly connection: MIDIPortConnectionState;
9206
- readonly id: string;
9207
- readonly manufacturer: string | null;
9208
- readonly name: string | null;
9209
- onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
9210
- readonly state: MIDIPortDeviceState;
9211
- readonly type: MIDIPortType;
9212
- readonly version: string | null;
9213
- close(): Promise<MIDIPort>;
9214
- open(): Promise<MIDIPort>;
9215
- addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
9216
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
9217
- removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
9218
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
9219
- }
9220
-
9221
- declare var MIDIPort: {
9222
- prototype: MIDIPort;
9223
- new(): MIDIPort;
9224
- };
9225
-
9226
9292
  interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
9227
9293
  }
9228
9294
 
@@ -9276,7 +9342,7 @@ interface MediaDevicesEventMap {
9276
9342
  interface MediaDevices extends EventTarget {
9277
9343
  ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
9278
9344
  enumerateDevices(): Promise<MediaDeviceInfo[]>;
9279
- getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
9345
+ getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
9280
9346
  getSupportedConstraints(): MediaTrackSupportedConstraints;
9281
9347
  getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
9282
9348
  addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -9483,7 +9549,7 @@ declare var MediaQueryListEvent: {
9483
9549
 
9484
9550
  interface MediaRecorderEventMap {
9485
9551
  "dataavailable": BlobEvent;
9486
- "error": MediaRecorderErrorEvent;
9552
+ "error": Event;
9487
9553
  "pause": Event;
9488
9554
  "resume": Event;
9489
9555
  "start": Event;
@@ -9494,7 +9560,7 @@ interface MediaRecorder extends EventTarget {
9494
9560
  readonly audioBitsPerSecond: number;
9495
9561
  readonly mimeType: string;
9496
9562
  ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
9497
- onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;
9563
+ onerror: ((this: MediaRecorder, ev: Event) => any) | null;
9498
9564
  onpause: ((this: MediaRecorder, ev: Event) => any) | null;
9499
9565
  onresume: ((this: MediaRecorder, ev: Event) => any) | null;
9500
9566
  onstart: ((this: MediaRecorder, ev: Event) => any) | null;
@@ -9519,15 +9585,6 @@ declare var MediaRecorder: {
9519
9585
  isTypeSupported(type: string): boolean;
9520
9586
  };
9521
9587
 
9522
- interface MediaRecorderErrorEvent extends Event {
9523
- readonly error: DOMException;
9524
- }
9525
-
9526
- declare var MediaRecorderErrorEvent: {
9527
- prototype: MediaRecorderErrorEvent;
9528
- new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
9529
- };
9530
-
9531
9588
  interface MediaSession {
9532
9589
  metadata: MediaMetadata | null;
9533
9590
  playbackState: MediaSessionPlaybackState;
@@ -9925,7 +9982,7 @@ declare var NavigationPreloadManager: {
9925
9982
  };
9926
9983
 
9927
9984
  /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
9928
- interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9985
+ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
9929
9986
  /** Available only in secure contexts. */
9930
9987
  readonly clipboard: Clipboard;
9931
9988
  /** Available only in secure contexts. */
@@ -9944,8 +10001,6 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
9944
10001
  canShare(data?: ShareData): boolean;
9945
10002
  getGamepads(): (Gamepad | null)[];
9946
10003
  /** Available only in secure contexts. */
9947
- requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
9948
- /** Available only in secure contexts. */
9949
10004
  requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
9950
10005
  sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
9951
10006
  /** Available only in secure contexts. */
@@ -9989,6 +10044,7 @@ interface NavigatorID {
9989
10044
  /** @deprecated */
9990
10045
  readonly productSub: string;
9991
10046
  readonly userAgent: string;
10047
+ /** @deprecated */
9992
10048
  readonly vendor: string;
9993
10049
  /** @deprecated */
9994
10050
  readonly vendorSub: string;
@@ -10004,10 +10060,6 @@ interface NavigatorLocks {
10004
10060
  readonly locks: LockManager;
10005
10061
  }
10006
10062
 
10007
- interface NavigatorNetworkInformation {
10008
- readonly connection: NetworkInformation;
10009
- }
10010
-
10011
10063
  interface NavigatorOnLine {
10012
10064
  readonly onLine: boolean;
10013
10065
  }
@@ -10027,15 +10079,6 @@ interface NavigatorStorage {
10027
10079
  readonly storage: StorageManager;
10028
10080
  }
10029
10081
 
10030
- interface NetworkInformation extends EventTarget {
10031
- readonly type: ConnectionType;
10032
- }
10033
-
10034
- declare var NetworkInformation: {
10035
- prototype: NetworkInformation;
10036
- new(): NetworkInformation;
10037
- };
10038
-
10039
10082
  /** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
10040
10083
  interface Node extends EventTarget {
10041
10084
  /** Returns node's node document's document base URL. */
@@ -10250,6 +10293,16 @@ declare var Notification: {
10250
10293
  requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
10251
10294
  };
10252
10295
 
10296
+ interface OES_draw_buffers_indexed {
10297
+ blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
10298
+ blendEquationiOES(buf: GLuint, mode: GLenum): void;
10299
+ blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
10300
+ blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
10301
+ colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
10302
+ disableiOES(target: GLenum, index: GLuint): void;
10303
+ enableiOES(target: GLenum, index: GLuint): void;
10304
+ }
10305
+
10253
10306
  /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
10254
10307
  interface OES_element_index_uint {
10255
10308
  }
@@ -10328,6 +10381,57 @@ declare var OfflineAudioContext: {
10328
10381
  new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
10329
10382
  };
10330
10383
 
10384
+ interface OffscreenCanvasEventMap {
10385
+ "contextlost": Event;
10386
+ "contextrestored": Event;
10387
+ }
10388
+
10389
+ interface OffscreenCanvas extends EventTarget {
10390
+ /**
10391
+ * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
10392
+ *
10393
+ * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
10394
+ */
10395
+ height: number;
10396
+ oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
10397
+ oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
10398
+ /**
10399
+ * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
10400
+ *
10401
+ * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
10402
+ */
10403
+ width: number;
10404
+ /**
10405
+ * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
10406
+ *
10407
+ * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
10408
+ *
10409
+ * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
10410
+ */
10411
+ getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
10412
+ /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
10413
+ transferToImageBitmap(): ImageBitmap;
10414
+ addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10415
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10416
+ removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10417
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10418
+ }
10419
+
10420
+ declare var OffscreenCanvas: {
10421
+ prototype: OffscreenCanvas;
10422
+ new(width: number, height: number): OffscreenCanvas;
10423
+ };
10424
+
10425
+ interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
10426
+ readonly canvas: OffscreenCanvas;
10427
+ commit(): void;
10428
+ }
10429
+
10430
+ declare var OffscreenCanvasRenderingContext2D: {
10431
+ prototype: OffscreenCanvasRenderingContext2D;
10432
+ new(): OffscreenCanvasRenderingContext2D;
10433
+ };
10434
+
10331
10435
  /** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */
10332
10436
  interface OscillatorNode extends AudioScheduledSourceNode {
10333
10437
  readonly detune: AudioParam;
@@ -10788,6 +10892,7 @@ interface PermissionStatusEventMap {
10788
10892
  }
10789
10893
 
10790
10894
  interface PermissionStatus extends EventTarget {
10895
+ readonly name: string;
10791
10896
  onchange: ((this: PermissionStatus, ev: Event) => any) | null;
10792
10897
  readonly state: PermissionState;
10793
10898
  addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10810,6 +10915,15 @@ declare var Permissions: {
10810
10915
  new(): Permissions;
10811
10916
  };
10812
10917
 
10918
+ interface PictureInPictureEvent extends Event {
10919
+ readonly pictureInPictureWindow: PictureInPictureWindow;
10920
+ }
10921
+
10922
+ declare var PictureInPictureEvent: {
10923
+ prototype: PictureInPictureEvent;
10924
+ new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
10925
+ };
10926
+
10813
10927
  interface PictureInPictureWindowEventMap {
10814
10928
  "resize": Event;
10815
10929
  }
@@ -10961,6 +11075,7 @@ declare var PromiseRejectionEvent: {
10961
11075
 
10962
11076
  /** Available only in secure contexts. */
10963
11077
  interface PublicKeyCredential extends Credential {
11078
+ readonly authenticatorAttachment: string | null;
10964
11079
  readonly rawId: ArrayBuffer;
10965
11080
  readonly response: AuthenticatorResponse;
10966
11081
  getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
@@ -10994,6 +11109,7 @@ declare var PushManager: {
10994
11109
  */
10995
11110
  interface PushSubscription {
10996
11111
  readonly endpoint: string;
11112
+ readonly expirationTime: EpochTimeStamp | null;
10997
11113
  readonly options: PushSubscriptionOptions;
10998
11114
  getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
10999
11115
  toJSON(): PushSubscriptionJSON;
@@ -11008,6 +11124,7 @@ declare var PushSubscription: {
11008
11124
  /** Available only in secure contexts. */
11009
11125
  interface PushSubscriptionOptions {
11010
11126
  readonly applicationServerKey: ArrayBuffer | null;
11127
+ readonly userVisibleOnly: boolean;
11011
11128
  }
11012
11129
 
11013
11130
  declare var PushSubscriptionOptions: {
@@ -11475,11 +11592,26 @@ declare var Range: {
11475
11592
  toString(): string;
11476
11593
  };
11477
11594
 
11595
+ interface ReadableByteStreamController {
11596
+ readonly byobRequest: ReadableStreamBYOBRequest | null;
11597
+ readonly desiredSize: number | null;
11598
+ close(): void;
11599
+ enqueue(chunk: ArrayBufferView): void;
11600
+ error(e?: any): void;
11601
+ }
11602
+
11603
+ declare var ReadableByteStreamController: {
11604
+ prototype: ReadableByteStreamController;
11605
+ new(): ReadableByteStreamController;
11606
+ };
11607
+
11478
11608
  /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
11479
11609
  interface ReadableStream<R = any> {
11480
11610
  readonly locked: boolean;
11481
11611
  cancel(reason?: any): Promise<void>;
11612
+ getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
11482
11613
  getReader(): ReadableStreamDefaultReader<R>;
11614
+ getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
11483
11615
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
11484
11616
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
11485
11617
  tee(): [ReadableStream<R>, ReadableStream<R>];
@@ -11487,9 +11619,32 @@ interface ReadableStream<R = any> {
11487
11619
 
11488
11620
  declare var ReadableStream: {
11489
11621
  prototype: ReadableStream;
11622
+ new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
11623
+ new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
11490
11624
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
11491
11625
  };
11492
11626
 
11627
+ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
11628
+ read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
11629
+ releaseLock(): void;
11630
+ }
11631
+
11632
+ declare var ReadableStreamBYOBReader: {
11633
+ prototype: ReadableStreamBYOBReader;
11634
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
11635
+ };
11636
+
11637
+ interface ReadableStreamBYOBRequest {
11638
+ readonly view: ArrayBufferView | null;
11639
+ respond(bytesWritten: number): void;
11640
+ respondWithNewView(view: ArrayBufferView): void;
11641
+ }
11642
+
11643
+ declare var ReadableStreamBYOBRequest: {
11644
+ prototype: ReadableStreamBYOBRequest;
11645
+ new(): ReadableStreamBYOBRequest;
11646
+ };
11647
+
11493
11648
  interface ReadableStreamDefaultController<R = any> {
11494
11649
  readonly desiredSize: number | null;
11495
11650
  close(): void;
@@ -11503,7 +11658,7 @@ declare var ReadableStreamDefaultController: {
11503
11658
  };
11504
11659
 
11505
11660
  interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
11506
- read(): Promise<ReadableStreamDefaultReadResult<R>>;
11661
+ read(): Promise<ReadableStreamReadResult<R>>;
11507
11662
  releaseLock(): void;
11508
11663
  }
11509
11664
 
@@ -13091,6 +13246,7 @@ interface SVGStyleElement extends SVGElement, LinkStyle {
13091
13246
  disabled: boolean;
13092
13247
  media: string;
13093
13248
  title: string;
13249
+ /** @deprecated */
13094
13250
  type: string;
13095
13251
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13096
13252
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -13453,6 +13609,7 @@ interface Selection {
13453
13609
  empty(): void;
13454
13610
  extend(node: Node, offset?: number): void;
13455
13611
  getRangeAt(index: number): Range;
13612
+ modify(alter?: string, direction?: string, granularity?: string): void;
13456
13613
  removeAllRanges(): void;
13457
13614
  removeRange(range: Range): void;
13458
13615
  selectAllChildren(node: Node): void;
@@ -13851,6 +14008,7 @@ interface StorageEvent extends Event {
13851
14008
  readonly storageArea: Storage | null;
13852
14009
  /** Returns the URL of the document whose storage item changed. */
13853
14010
  readonly url: string;
14011
+ /** @deprecated */
13854
14012
  initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
13855
14013
  }
13856
14014
 
@@ -13921,11 +14079,11 @@ declare var SubmitEvent: {
13921
14079
  * Available only in secure contexts.
13922
14080
  */
13923
14081
  interface SubtleCrypto {
13924
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
14082
+ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
13925
14083
  deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
13926
14084
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13927
14085
  digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
13928
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
14086
+ encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
13929
14087
  exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
13930
14088
  exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
13931
14089
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
@@ -14633,8 +14791,8 @@ interface WEBGL_lose_context {
14633
14791
  interface WEBGL_multi_draw {
14634
14792
  multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14635
14793
  multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
14636
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14637
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
14794
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14795
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
14638
14796
  }
14639
14797
 
14640
14798
  /** A WaveShaperNode always has exactly one input and one output. */
@@ -15984,7 +16142,7 @@ declare var WebGLRenderingContext: {
15984
16142
  };
15985
16143
 
15986
16144
  interface WebGLRenderingContextBase {
15987
- readonly canvas: HTMLCanvasElement;
16145
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas;
15988
16146
  readonly drawingBufferHeight: GLsizei;
15989
16147
  readonly drawingBufferWidth: GLsizei;
15990
16148
  activeTexture(texture: GLenum): void;
@@ -16044,35 +16202,39 @@ interface WebGLRenderingContextBase {
16044
16202
  getBufferParameter(target: GLenum, pname: GLenum): any;
16045
16203
  getContextAttributes(): WebGLContextAttributes | null;
16046
16204
  getError(): GLenum;
16205
+ getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
16047
16206
  getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
16048
16207
  getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
16049
16208
  getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
16050
16209
  getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
16051
- getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
16052
16210
  getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
16053
- getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
16054
16211
  getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
16212
+ getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
16213
+ getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
16214
+ getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
16215
+ getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
16055
16216
  getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
16217
+ getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
16218
+ getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
16219
+ getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
16220
+ getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
16221
+ getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
16222
+ getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
16223
+ getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
16056
16224
  getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
16057
16225
  getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
16058
16226
  getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
16059
16227
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
16060
16228
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
16061
16229
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
16230
+ getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
16062
16231
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
16232
+ getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
16063
16233
  getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
16234
+ getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
16064
16235
  getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
16065
16236
  getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
16066
- getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
16067
- getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
16068
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
16069
- getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
16070
- getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
16071
- getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
16072
- getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
16073
- getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
16074
- getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
16075
- getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
16237
+ getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
16076
16238
  getExtension(name: string): any;
16077
16239
  getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
16078
16240
  getParameter(pname: GLenum): any;
@@ -16683,7 +16845,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
16683
16845
  /** Returns true if the toolbar is visible; otherwise, returns false. */
16684
16846
  readonly toolbar: BarProp;
16685
16847
  readonly top: WindowProxy | null;
16686
- readonly visualViewport: VisualViewport;
16848
+ readonly visualViewport: VisualViewport | null;
16687
16849
  readonly window: Window & typeof globalThis;
16688
16850
  alert(message?: any): void;
16689
16851
  blur(): void;
@@ -16802,8 +16964,8 @@ interface WindowOrWorkerGlobalScope {
16802
16964
  readonly performance: Performance;
16803
16965
  atob(data: string): string;
16804
16966
  btoa(data: string): string;
16805
- clearInterval(id?: number): void;
16806
- clearTimeout(id?: number): void;
16967
+ clearInterval(id: number | undefined): void;
16968
+ clearTimeout(id: number | undefined): void;
16807
16969
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16808
16970
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16809
16971
  fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -16875,6 +17037,7 @@ declare var WritableStream: {
16875
17037
 
16876
17038
  /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
16877
17039
  interface WritableStreamDefaultController {
17040
+ readonly signal: AbortSignal;
16878
17041
  error(e?: any): void;
16879
17042
  }
16880
17043
 
@@ -17457,7 +17620,7 @@ interface UnderlyingSourceStartCallback<R> {
17457
17620
  }
17458
17621
 
17459
17622
  interface VideoFrameRequestCallback {
17460
- (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata): void;
17623
+ (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
17461
17624
  }
17462
17625
 
17463
17626
  interface VoidFunction {
@@ -17493,7 +17656,6 @@ interface HTMLElementTagNameMap {
17493
17656
  "details": HTMLDetailsElement;
17494
17657
  "dfn": HTMLElement;
17495
17658
  "dialog": HTMLDialogElement;
17496
- "dir": HTMLDirectoryElement;
17497
17659
  "div": HTMLDivElement;
17498
17660
  "dl": HTMLDListElement;
17499
17661
  "dt": HTMLElement;
@@ -17502,11 +17664,8 @@ interface HTMLElementTagNameMap {
17502
17664
  "fieldset": HTMLFieldSetElement;
17503
17665
  "figcaption": HTMLElement;
17504
17666
  "figure": HTMLElement;
17505
- "font": HTMLFontElement;
17506
17667
  "footer": HTMLElement;
17507
17668
  "form": HTMLFormElement;
17508
- "frame": HTMLFrameElement;
17509
- "frameset": HTMLFrameSetElement;
17510
17669
  "h1": HTMLHeadingElement;
17511
17670
  "h2": HTMLHeadingElement;
17512
17671
  "h3": HTMLHeadingElement;
@@ -17531,7 +17690,6 @@ interface HTMLElementTagNameMap {
17531
17690
  "main": HTMLElement;
17532
17691
  "map": HTMLMapElement;
17533
17692
  "mark": HTMLElement;
17534
- "marquee": HTMLMarqueeElement;
17535
17693
  "menu": HTMLMenuElement;
17536
17694
  "meta": HTMLMetaElement;
17537
17695
  "meter": HTMLMeterElement;
@@ -17543,7 +17701,6 @@ interface HTMLElementTagNameMap {
17543
17701
  "option": HTMLOptionElement;
17544
17702
  "output": HTMLOutputElement;
17545
17703
  "p": HTMLParagraphElement;
17546
- "param": HTMLParamElement;
17547
17704
  "picture": HTMLPictureElement;
17548
17705
  "pre": HTMLPreElement;
17549
17706
  "progress": HTMLProgressElement;
@@ -17585,7 +17742,34 @@ interface HTMLElementTagNameMap {
17585
17742
  }
17586
17743
 
17587
17744
  interface HTMLElementDeprecatedTagNameMap {
17745
+ "acronym": HTMLElement;
17746
+ "applet": HTMLUnknownElement;
17747
+ "basefont": HTMLElement;
17748
+ "bgsound": HTMLUnknownElement;
17749
+ "big": HTMLElement;
17750
+ "blink": HTMLUnknownElement;
17751
+ "center": HTMLElement;
17752
+ "dir": HTMLDirectoryElement;
17753
+ "font": HTMLFontElement;
17754
+ "frame": HTMLFrameElement;
17755
+ "frameset": HTMLFrameSetElement;
17756
+ "isindex": HTMLUnknownElement;
17757
+ "keygen": HTMLUnknownElement;
17588
17758
  "listing": HTMLPreElement;
17759
+ "marquee": HTMLMarqueeElement;
17760
+ "menuitem": HTMLElement;
17761
+ "multicol": HTMLUnknownElement;
17762
+ "nextid": HTMLUnknownElement;
17763
+ "nobr": HTMLElement;
17764
+ "noembed": HTMLElement;
17765
+ "noframes": HTMLElement;
17766
+ "param": HTMLParamElement;
17767
+ "plaintext": HTMLElement;
17768
+ "rb": HTMLElement;
17769
+ "rtc": HTMLElement;
17770
+ "spacer": HTMLUnknownElement;
17771
+ "strike": HTMLElement;
17772
+ "tt": HTMLElement;
17589
17773
  "xmp": HTMLPreElement;
17590
17774
  }
17591
17775
 
@@ -17734,7 +17918,7 @@ declare var statusbar: BarProp;
17734
17918
  /** Returns true if the toolbar is visible; otherwise, returns false. */
17735
17919
  declare var toolbar: BarProp;
17736
17920
  declare var top: WindowProxy | null;
17737
- declare var visualViewport: VisualViewport;
17921
+ declare var visualViewport: VisualViewport | null;
17738
17922
  declare var window: Window & typeof globalThis;
17739
17923
  declare function alert(message?: any): void;
17740
17924
  declare function blur(): void;
@@ -17795,11 +17979,13 @@ declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
17795
17979
  declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
17796
17980
  declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
17797
17981
  declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
17982
+ declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
17798
17983
  /**
17799
17984
  * Fires when the object loses the input focus.
17800
17985
  * @param ev The focus event.
17801
17986
  */
17802
17987
  declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
17988
+ declare var oncancel: ((this: Window, ev: Event) => any) | null;
17803
17989
  /**
17804
17990
  * Occurs when playback is possible, but would require further buffering.
17805
17991
  * @param ev The event.
@@ -18088,8 +18274,8 @@ declare var origin: string;
18088
18274
  declare var performance: Performance;
18089
18275
  declare function atob(data: string): string;
18090
18276
  declare function btoa(data: string): string;
18091
- declare function clearInterval(id?: number): void;
18092
- declare function clearTimeout(id?: number): void;
18277
+ declare function clearInterval(id: number | undefined): void;
18278
+ declare function clearTimeout(id: number | undefined): void;
18093
18279
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
18094
18280
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
18095
18281
  declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -18111,7 +18297,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
18111
18297
  type BufferSource = ArrayBufferView | ArrayBuffer;
18112
18298
  type COSEAlgorithmIdentifier = number;
18113
18299
  type CSSNumberish = number;
18114
- type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
18300
+ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
18115
18301
  type ClipboardItemData = Promise<string | Blob>;
18116
18302
  type ClipboardItems = ClipboardItem[];
18117
18303
  type ConstrainBoolean = boolean | ConstrainBooleanParameters;
@@ -18138,7 +18324,7 @@ type GLuint64 = number;
18138
18324
  type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
18139
18325
  type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
18140
18326
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
18141
- type HeadersInit = string[][] | Record<string, string> | Headers;
18327
+ type HeadersInit = [string, string][] | Record<string, string> | Headers;
18142
18328
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
18143
18329
  type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
18144
18330
  type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
@@ -18148,20 +18334,19 @@ type MediaProvider = MediaStream | MediaSource | Blob;
18148
18334
  type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
18149
18335
  type MutationRecordType = "attributes" | "characterData" | "childList";
18150
18336
  type NamedCurve = string;
18337
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18151
18338
  type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
18152
18339
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
18153
18340
  type PerformanceEntryList = PerformanceEntry[];
18154
- type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
18155
- type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
18156
- type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
18341
+ type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
18342
+ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
18343
+ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
18157
18344
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18158
18345
  type RequestInfo = Request | string;
18159
- type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
18346
+ type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
18160
18347
  type TimerHandler = string | Function;
18161
- type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
18348
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18162
18349
  type Uint32List = Uint32Array | GLuint[];
18163
- type UvmEntries = UvmEntry[];
18164
- type UvmEntry = number[];
18165
18350
  type VibratePattern = number | number[];
18166
18351
  type WindowProxy = Window;
18167
18352
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
@@ -18173,7 +18358,7 @@ type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "n
18173
18358
  type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
18174
18359
  type AudioContextState = "closed" | "running" | "suspended";
18175
18360
  type AuthenticatorAttachment = "cross-platform" | "platform";
18176
- type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
18361
+ type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
18177
18362
  type AutoKeyword = "auto";
18178
18363
  type AutomationRate = "a-rate" | "k-rate";
18179
18364
  type BinaryType = "arraybuffer" | "blob";
@@ -18196,11 +18381,10 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
18196
18381
  type ColorSpaceConversion = "default" | "none";
18197
18382
  type CompositeOperation = "accumulate" | "add" | "replace";
18198
18383
  type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
18199
- type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
18200
18384
  type CredentialMediationRequirement = "optional" | "required" | "silent";
18201
18385
  type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
18202
18386
  type DirectionSetting = "" | "lr" | "rl";
18203
- type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
18387
+ type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
18204
18388
  type DistanceModelType = "exponential" | "inverse" | "linear";
18205
18389
  type DocumentReadyState = "complete" | "interactive" | "loading";
18206
18390
  type DocumentVisibilityState = "hidden" | "visible";
@@ -18227,9 +18411,6 @@ type KeyType = "private" | "public" | "secret";
18227
18411
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18228
18412
  type LineAlignSetting = "center" | "end" | "start";
18229
18413
  type LockMode = "exclusive" | "shared";
18230
- type MIDIPortConnectionState = "closed" | "open" | "pending";
18231
- type MIDIPortDeviceState = "connected" | "disconnected";
18232
- type MIDIPortType = "input" | "output";
18233
18414
  type MediaDecodingType = "file" | "media-source" | "webrtc";
18234
18415
  type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
18235
18416
  type MediaEncodingType = "record" | "webrtc";
@@ -18238,12 +18419,13 @@ type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-r
18238
18419
  type MediaKeySessionType = "persistent-license" | "temporary";
18239
18420
  type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
18240
18421
  type MediaKeysRequirement = "not-allowed" | "optional" | "required";
18241
- type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
18422
+ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
18242
18423
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
18243
18424
  type MediaStreamTrackState = "ended" | "live";
18244
18425
  type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
18245
18426
  type NotificationDirection = "auto" | "ltr" | "rtl";
18246
18427
  type NotificationPermission = "default" | "denied" | "granted";
18428
+ type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
18247
18429
  type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
18248
18430
  type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
18249
18431
  type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
@@ -18268,7 +18450,6 @@ type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint
18268
18450
  type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
18269
18451
  type RTCIceComponent = "rtcp" | "rtp";
18270
18452
  type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
18271
- type RTCIceCredentialType = "password";
18272
18453
  type RTCIceGathererState = "complete" | "gathering" | "new";
18273
18454
  type RTCIceGatheringState = "complete" | "gathering" | "new";
18274
18455
  type RTCIceProtocol = "tcp" | "udp";
@@ -18283,7 +18464,9 @@ type RTCSctpTransportState = "closed" | "connected" | "connecting";
18283
18464
  type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
18284
18465
  type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
18285
18466
  type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
18286
- type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
18467
+ type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
18468
+ type ReadableStreamReaderMode = "byob";
18469
+ type ReadableStreamType = "bytes";
18287
18470
  type ReadyState = "closed" | "ended" | "open";
18288
18471
  type RecordingState = "inactive" | "paused" | "recording";
18289
18472
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";