@typescript/native-preview-linux-x64 7.0.0-dev.20250522.2

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 (102) hide show
  1. package/LICENSE +55 -0
  2. package/NOTICE.txt +297 -0
  3. package/README.md +3 -0
  4. package/lib/lib.d.ts +22 -0
  5. package/lib/lib.decorators.d.ts +386 -0
  6. package/lib/lib.decorators.legacy.d.ts +22 -0
  7. package/lib/lib.dom.asynciterable.d.ts +41 -0
  8. package/lib/lib.dom.d.ts +28087 -0
  9. package/lib/lib.dom.iterable.d.ts +491 -0
  10. package/lib/lib.es2015.collection.d.ts +147 -0
  11. package/lib/lib.es2015.core.d.ts +597 -0
  12. package/lib/lib.es2015.d.ts +28 -0
  13. package/lib/lib.es2015.generator.d.ts +77 -0
  14. package/lib/lib.es2015.iterable.d.ts +590 -0
  15. package/lib/lib.es2015.promise.d.ts +81 -0
  16. package/lib/lib.es2015.proxy.d.ts +128 -0
  17. package/lib/lib.es2015.reflect.d.ts +144 -0
  18. package/lib/lib.es2015.symbol.d.ts +46 -0
  19. package/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  20. package/lib/lib.es2016.array.include.d.ts +116 -0
  21. package/lib/lib.es2016.d.ts +21 -0
  22. package/lib/lib.es2016.full.d.ts +23 -0
  23. package/lib/lib.es2016.intl.d.ts +31 -0
  24. package/lib/lib.es2017.arraybuffer.d.ts +21 -0
  25. package/lib/lib.es2017.d.ts +26 -0
  26. package/lib/lib.es2017.date.d.ts +31 -0
  27. package/lib/lib.es2017.full.d.ts +23 -0
  28. package/lib/lib.es2017.intl.d.ts +44 -0
  29. package/lib/lib.es2017.object.d.ts +49 -0
  30. package/lib/lib.es2017.sharedmemory.d.ts +135 -0
  31. package/lib/lib.es2017.string.d.ts +45 -0
  32. package/lib/lib.es2017.typedarrays.d.ts +53 -0
  33. package/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  34. package/lib/lib.es2018.asynciterable.d.ts +53 -0
  35. package/lib/lib.es2018.d.ts +24 -0
  36. package/lib/lib.es2018.full.d.ts +24 -0
  37. package/lib/lib.es2018.intl.d.ts +83 -0
  38. package/lib/lib.es2018.promise.d.ts +30 -0
  39. package/lib/lib.es2018.regexp.d.ts +37 -0
  40. package/lib/lib.es2019.array.d.ts +79 -0
  41. package/lib/lib.es2019.d.ts +24 -0
  42. package/lib/lib.es2019.full.d.ts +24 -0
  43. package/lib/lib.es2019.intl.d.ts +23 -0
  44. package/lib/lib.es2019.object.d.ts +33 -0
  45. package/lib/lib.es2019.string.d.ts +37 -0
  46. package/lib/lib.es2019.symbol.d.ts +24 -0
  47. package/lib/lib.es2020.bigint.d.ts +729 -0
  48. package/lib/lib.es2020.d.ts +27 -0
  49. package/lib/lib.es2020.date.d.ts +42 -0
  50. package/lib/lib.es2020.full.d.ts +24 -0
  51. package/lib/lib.es2020.intl.d.ts +474 -0
  52. package/lib/lib.es2020.number.d.ts +28 -0
  53. package/lib/lib.es2020.promise.d.ts +47 -0
  54. package/lib/lib.es2020.sharedmemory.d.ts +99 -0
  55. package/lib/lib.es2020.string.d.ts +44 -0
  56. package/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  57. package/lib/lib.es2021.d.ts +23 -0
  58. package/lib/lib.es2021.full.d.ts +24 -0
  59. package/lib/lib.es2021.intl.d.ts +166 -0
  60. package/lib/lib.es2021.promise.d.ts +48 -0
  61. package/lib/lib.es2021.string.d.ts +33 -0
  62. package/lib/lib.es2021.weakref.d.ts +78 -0
  63. package/lib/lib.es2022.array.d.ts +121 -0
  64. package/lib/lib.es2022.d.ts +25 -0
  65. package/lib/lib.es2022.error.d.ts +75 -0
  66. package/lib/lib.es2022.full.d.ts +24 -0
  67. package/lib/lib.es2022.intl.d.ts +121 -0
  68. package/lib/lib.es2022.object.d.ts +26 -0
  69. package/lib/lib.es2022.regexp.d.ts +39 -0
  70. package/lib/lib.es2022.string.d.ts +25 -0
  71. package/lib/lib.es2023.array.d.ts +924 -0
  72. package/lib/lib.es2023.collection.d.ts +21 -0
  73. package/lib/lib.es2023.d.ts +22 -0
  74. package/lib/lib.es2023.full.d.ts +24 -0
  75. package/lib/lib.es2023.intl.d.ts +56 -0
  76. package/lib/lib.es2024.arraybuffer.d.ts +65 -0
  77. package/lib/lib.es2024.collection.d.ts +29 -0
  78. package/lib/lib.es2024.d.ts +26 -0
  79. package/lib/lib.es2024.full.d.ts +24 -0
  80. package/lib/lib.es2024.object.d.ts +29 -0
  81. package/lib/lib.es2024.promise.d.ts +35 -0
  82. package/lib/lib.es2024.regexp.d.ts +25 -0
  83. package/lib/lib.es2024.sharedmemory.d.ts +68 -0
  84. package/lib/lib.es2024.string.d.ts +29 -0
  85. package/lib/lib.es5.d.ts +4585 -0
  86. package/lib/lib.es6.d.ts +23 -0
  87. package/lib/lib.esnext.array.d.ts +35 -0
  88. package/lib/lib.esnext.collection.d.ts +96 -0
  89. package/lib/lib.esnext.d.ts +25 -0
  90. package/lib/lib.esnext.decorators.d.ts +28 -0
  91. package/lib/lib.esnext.disposable.d.ts +193 -0
  92. package/lib/lib.esnext.full.d.ts +24 -0
  93. package/lib/lib.esnext.intl.d.ts +21 -0
  94. package/lib/lib.esnext.iterator.d.ts +148 -0
  95. package/lib/lib.scripthost.d.ts +322 -0
  96. package/lib/lib.webworker.asynciterable.d.ts +41 -0
  97. package/lib/lib.webworker.d.ts +9410 -0
  98. package/lib/lib.webworker.importscripts.d.ts +23 -0
  99. package/lib/lib.webworker.iterable.d.ts +288 -0
  100. package/lib/tsgo +0 -0
  101. package/lib/tsgo.sig +11 -0
  102. package/package.json +41 -0
@@ -0,0 +1,491 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ /////////////////////////////
20
+ /// Window Iterable APIs
21
+ /////////////////////////////
22
+
23
+ interface AbortSignal {
24
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
25
+ any(signals: Iterable<AbortSignal>): AbortSignal;
26
+ }
27
+
28
+ interface AudioParam {
29
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
30
+ setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
31
+ }
32
+
33
+ interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
34
+ }
35
+
36
+ interface BaseAudioContext {
37
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
38
+ createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
39
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
40
+ createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
41
+ }
42
+
43
+ interface CSSKeyframesRule {
44
+ [Symbol.iterator](): ArrayIterator<CSSKeyframeRule>;
45
+ }
46
+
47
+ interface CSSNumericArray {
48
+ [Symbol.iterator](): ArrayIterator<CSSNumericValue>;
49
+ entries(): ArrayIterator<[number, CSSNumericValue]>;
50
+ keys(): ArrayIterator<number>;
51
+ values(): ArrayIterator<CSSNumericValue>;
52
+ }
53
+
54
+ interface CSSRuleList {
55
+ [Symbol.iterator](): ArrayIterator<CSSRule>;
56
+ }
57
+
58
+ interface CSSStyleDeclaration {
59
+ [Symbol.iterator](): ArrayIterator<string>;
60
+ }
61
+
62
+ interface CSSTransformValue {
63
+ [Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
64
+ entries(): ArrayIterator<[number, CSSTransformComponent]>;
65
+ keys(): ArrayIterator<number>;
66
+ values(): ArrayIterator<CSSTransformComponent>;
67
+ }
68
+
69
+ interface CSSUnparsedValue {
70
+ [Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
71
+ entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
72
+ keys(): ArrayIterator<number>;
73
+ values(): ArrayIterator<CSSUnparsedSegment>;
74
+ }
75
+
76
+ interface Cache {
77
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
78
+ addAll(requests: Iterable<RequestInfo>): Promise<void>;
79
+ }
80
+
81
+ interface CanvasPath {
82
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
83
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
84
+ }
85
+
86
+ interface CanvasPathDrawingStyles {
87
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
88
+ setLineDash(segments: Iterable<number>): void;
89
+ }
90
+
91
+ interface CustomStateSet extends Set<string> {
92
+ }
93
+
94
+ interface DOMRectList {
95
+ [Symbol.iterator](): ArrayIterator<DOMRect>;
96
+ }
97
+
98
+ interface DOMStringList {
99
+ [Symbol.iterator](): ArrayIterator<string>;
100
+ }
101
+
102
+ interface DOMTokenList {
103
+ [Symbol.iterator](): ArrayIterator<string>;
104
+ entries(): ArrayIterator<[number, string]>;
105
+ keys(): ArrayIterator<number>;
106
+ values(): ArrayIterator<string>;
107
+ }
108
+
109
+ interface DataTransferItemList {
110
+ [Symbol.iterator](): ArrayIterator<DataTransferItem>;
111
+ }
112
+
113
+ interface EventCounts extends ReadonlyMap<string, number> {
114
+ }
115
+
116
+ interface FileList {
117
+ [Symbol.iterator](): ArrayIterator<File>;
118
+ }
119
+
120
+ interface FontFaceSet extends Set<FontFace> {
121
+ }
122
+
123
+ interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
124
+ [Symbol.iterator](): FormDataIterator<T>;
125
+ }
126
+
127
+ interface FormData {
128
+ [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
129
+ /** Returns an array of key, value pairs for every entry in the list. */
130
+ entries(): FormDataIterator<[string, FormDataEntryValue]>;
131
+ /** Returns a list of keys in the list. */
132
+ keys(): FormDataIterator<string>;
133
+ /** Returns a list of values in the list. */
134
+ values(): FormDataIterator<FormDataEntryValue>;
135
+ }
136
+
137
+ interface HTMLAllCollection {
138
+ [Symbol.iterator](): ArrayIterator<Element>;
139
+ }
140
+
141
+ interface HTMLCollectionBase {
142
+ [Symbol.iterator](): ArrayIterator<Element>;
143
+ }
144
+
145
+ interface HTMLCollectionOf<T extends Element> {
146
+ [Symbol.iterator](): ArrayIterator<T>;
147
+ }
148
+
149
+ interface HTMLFormElement {
150
+ [Symbol.iterator](): ArrayIterator<Element>;
151
+ }
152
+
153
+ interface HTMLSelectElement {
154
+ [Symbol.iterator](): ArrayIterator<HTMLOptionElement>;
155
+ }
156
+
157
+ interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
158
+ [Symbol.iterator](): HeadersIterator<T>;
159
+ }
160
+
161
+ interface Headers {
162
+ [Symbol.iterator](): HeadersIterator<[string, string]>;
163
+ /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
164
+ entries(): HeadersIterator<[string, string]>;
165
+ /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
166
+ keys(): HeadersIterator<string>;
167
+ /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
168
+ values(): HeadersIterator<string>;
169
+ }
170
+
171
+ interface Highlight extends Set<AbstractRange> {
172
+ }
173
+
174
+ interface HighlightRegistry extends Map<string, Highlight> {
175
+ }
176
+
177
+ interface IDBDatabase {
178
+ /**
179
+ * 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.
180
+ *
181
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
182
+ */
183
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
184
+ }
185
+
186
+ interface IDBObjectStore {
187
+ /**
188
+ * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
189
+ *
190
+ * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
191
+ *
192
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
193
+ */
194
+ createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
195
+ }
196
+
197
+ interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
198
+ }
199
+
200
+ interface MIDIOutput {
201
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
202
+ send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
203
+ }
204
+
205
+ interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
206
+ }
207
+
208
+ interface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
209
+ [Symbol.iterator](): MediaKeyStatusMapIterator<T>;
210
+ }
211
+
212
+ interface MediaKeyStatusMap {
213
+ [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
214
+ entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
215
+ keys(): MediaKeyStatusMapIterator<BufferSource>;
216
+ values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
217
+ }
218
+
219
+ interface MediaList {
220
+ [Symbol.iterator](): ArrayIterator<string>;
221
+ }
222
+
223
+ interface MessageEvent<T = any> {
224
+ /** @deprecated */
225
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
226
+ }
227
+
228
+ interface MimeTypeArray {
229
+ [Symbol.iterator](): ArrayIterator<MimeType>;
230
+ }
231
+
232
+ interface NamedNodeMap {
233
+ [Symbol.iterator](): ArrayIterator<Attr>;
234
+ }
235
+
236
+ interface Navigator {
237
+ /**
238
+ * Available only in secure contexts.
239
+ *
240
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
241
+ */
242
+ requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
243
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
244
+ vibrate(pattern: Iterable<number>): boolean;
245
+ }
246
+
247
+ interface NodeList {
248
+ [Symbol.iterator](): ArrayIterator<Node>;
249
+ /** Returns an array of key, value pairs for every entry in the list. */
250
+ entries(): ArrayIterator<[number, Node]>;
251
+ /** Returns an list of keys in the list. */
252
+ keys(): ArrayIterator<number>;
253
+ /** Returns an list of values in the list. */
254
+ values(): ArrayIterator<Node>;
255
+ }
256
+
257
+ interface NodeListOf<TNode extends Node> {
258
+ [Symbol.iterator](): ArrayIterator<TNode>;
259
+ /** Returns an array of key, value pairs for every entry in the list. */
260
+ entries(): ArrayIterator<[number, TNode]>;
261
+ /** Returns an list of keys in the list. */
262
+ keys(): ArrayIterator<number>;
263
+ /** Returns an list of values in the list. */
264
+ values(): ArrayIterator<TNode>;
265
+ }
266
+
267
+ interface Plugin {
268
+ [Symbol.iterator](): ArrayIterator<MimeType>;
269
+ }
270
+
271
+ interface PluginArray {
272
+ [Symbol.iterator](): ArrayIterator<Plugin>;
273
+ }
274
+
275
+ interface RTCRtpTransceiver {
276
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
277
+ setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
278
+ }
279
+
280
+ interface RTCStatsReport extends ReadonlyMap<string, any> {
281
+ }
282
+
283
+ interface SVGLengthList {
284
+ [Symbol.iterator](): ArrayIterator<SVGLength>;
285
+ }
286
+
287
+ interface SVGNumberList {
288
+ [Symbol.iterator](): ArrayIterator<SVGNumber>;
289
+ }
290
+
291
+ interface SVGPointList {
292
+ [Symbol.iterator](): ArrayIterator<DOMPoint>;
293
+ }
294
+
295
+ interface SVGStringList {
296
+ [Symbol.iterator](): ArrayIterator<string>;
297
+ }
298
+
299
+ interface SVGTransformList {
300
+ [Symbol.iterator](): ArrayIterator<SVGTransform>;
301
+ }
302
+
303
+ interface SourceBufferList {
304
+ [Symbol.iterator](): ArrayIterator<SourceBuffer>;
305
+ }
306
+
307
+ interface SpeechRecognitionResult {
308
+ [Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;
309
+ }
310
+
311
+ interface SpeechRecognitionResultList {
312
+ [Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;
313
+ }
314
+
315
+ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
316
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
317
+ }
318
+
319
+ interface StylePropertyMapReadOnly {
320
+ [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
321
+ entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
322
+ keys(): StylePropertyMapReadOnlyIterator<string>;
323
+ values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
324
+ }
325
+
326
+ interface StyleSheetList {
327
+ [Symbol.iterator](): ArrayIterator<CSSStyleSheet>;
328
+ }
329
+
330
+ interface SubtleCrypto {
331
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
332
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
333
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
334
+ generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
335
+ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
336
+ generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
337
+ generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
338
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
339
+ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
340
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
341
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
342
+ unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
343
+ }
344
+
345
+ interface TextTrackCueList {
346
+ [Symbol.iterator](): ArrayIterator<TextTrackCue>;
347
+ }
348
+
349
+ interface TextTrackList {
350
+ [Symbol.iterator](): ArrayIterator<TextTrack>;
351
+ }
352
+
353
+ interface TouchList {
354
+ [Symbol.iterator](): ArrayIterator<Touch>;
355
+ }
356
+
357
+ interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
358
+ [Symbol.iterator](): URLSearchParamsIterator<T>;
359
+ }
360
+
361
+ interface URLSearchParams {
362
+ [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
363
+ /** Returns an array of key, value pairs for every entry in the search params. */
364
+ entries(): URLSearchParamsIterator<[string, string]>;
365
+ /** Returns a list of keys in the search params. */
366
+ keys(): URLSearchParamsIterator<string>;
367
+ /** Returns a list of values in the search params. */
368
+ values(): URLSearchParamsIterator<string>;
369
+ }
370
+
371
+ interface WEBGL_draw_buffers {
372
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
373
+ drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
374
+ }
375
+
376
+ interface WEBGL_multi_draw {
377
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
378
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
379
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
380
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
381
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
382
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
383
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
384
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
385
+ }
386
+
387
+ interface WebGL2RenderingContextBase {
388
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
389
+ clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
390
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
391
+ clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
392
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
393
+ clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
394
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
395
+ drawBuffers(buffers: Iterable<GLenum>): void;
396
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
397
+ getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
398
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
399
+ getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
400
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
401
+ invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
402
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
403
+ invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
404
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
405
+ transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
406
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
407
+ uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
408
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
409
+ uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
410
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
411
+ uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
412
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
413
+ uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
414
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
415
+ uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
416
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
417
+ uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
418
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
419
+ uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
420
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
421
+ uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
422
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
423
+ uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
424
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
425
+ uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
426
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
427
+ vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
428
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
429
+ vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
430
+ }
431
+
432
+ interface WebGL2RenderingContextOverloads {
433
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
434
+ uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
435
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
436
+ uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
437
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
438
+ uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
439
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
440
+ uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
441
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
442
+ uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
443
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
444
+ uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
445
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
446
+ uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
447
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
448
+ uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
449
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
450
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
451
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
452
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
453
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
454
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
455
+ }
456
+
457
+ interface WebGLRenderingContextBase {
458
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
459
+ vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
460
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
461
+ vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
462
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
463
+ vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
464
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
465
+ vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
466
+ }
467
+
468
+ interface WebGLRenderingContextOverloads {
469
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
470
+ uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
471
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
472
+ uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
473
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
474
+ uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
475
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
476
+ uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
477
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
478
+ uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
479
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
480
+ uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
481
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
482
+ uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
483
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
484
+ uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
485
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
486
+ uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
487
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
488
+ uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
489
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
490
+ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
491
+ }
@@ -0,0 +1,147 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface Map<K, V> {
20
+ clear(): void;
21
+ /**
22
+ * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
23
+ */
24
+ delete(key: K): boolean;
25
+ /**
26
+ * Executes a provided function once per each key/value pair in the Map, in insertion order.
27
+ */
28
+ forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
29
+ /**
30
+ * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
31
+ * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
32
+ */
33
+ get(key: K): V | undefined;
34
+ /**
35
+ * @returns boolean indicating whether an element with the specified key exists or not.
36
+ */
37
+ has(key: K): boolean;
38
+ /**
39
+ * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
40
+ */
41
+ set(key: K, value: V): this;
42
+ /**
43
+ * @returns the number of elements in the Map.
44
+ */
45
+ readonly size: number;
46
+ }
47
+
48
+ interface MapConstructor {
49
+ new (): Map<any, any>;
50
+ new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
51
+ readonly prototype: Map<any, any>;
52
+ }
53
+ declare var Map: MapConstructor;
54
+
55
+ interface ReadonlyMap<K, V> {
56
+ forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
57
+ get(key: K): V | undefined;
58
+ has(key: K): boolean;
59
+ readonly size: number;
60
+ }
61
+
62
+ interface WeakMap<K extends WeakKey, V> {
63
+ /**
64
+ * Removes the specified element from the WeakMap.
65
+ * @returns true if the element was successfully removed, or false if it was not present.
66
+ */
67
+ delete(key: K): boolean;
68
+ /**
69
+ * @returns a specified element.
70
+ */
71
+ get(key: K): V | undefined;
72
+ /**
73
+ * @returns a boolean indicating whether an element with the specified key exists or not.
74
+ */
75
+ has(key: K): boolean;
76
+ /**
77
+ * Adds a new element with a specified key and value.
78
+ * @param key Must be an object or symbol.
79
+ */
80
+ set(key: K, value: V): this;
81
+ }
82
+
83
+ interface WeakMapConstructor {
84
+ new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
85
+ readonly prototype: WeakMap<WeakKey, any>;
86
+ }
87
+ declare var WeakMap: WeakMapConstructor;
88
+
89
+ interface Set<T> {
90
+ /**
91
+ * Appends a new element with a specified value to the end of the Set.
92
+ */
93
+ add(value: T): this;
94
+
95
+ clear(): void;
96
+ /**
97
+ * Removes a specified value from the Set.
98
+ * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
99
+ */
100
+ delete(value: T): boolean;
101
+ /**
102
+ * Executes a provided function once per each value in the Set object, in insertion order.
103
+ */
104
+ forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
105
+ /**
106
+ * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
107
+ */
108
+ has(value: T): boolean;
109
+ /**
110
+ * @returns the number of (unique) elements in Set.
111
+ */
112
+ readonly size: number;
113
+ }
114
+
115
+ interface SetConstructor {
116
+ new <T = any>(values?: readonly T[] | null): Set<T>;
117
+ readonly prototype: Set<any>;
118
+ }
119
+ declare var Set: SetConstructor;
120
+
121
+ interface ReadonlySet<T> {
122
+ forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
123
+ has(value: T): boolean;
124
+ readonly size: number;
125
+ }
126
+
127
+ interface WeakSet<T extends WeakKey> {
128
+ /**
129
+ * Appends a new value to the end of the WeakSet.
130
+ */
131
+ add(value: T): this;
132
+ /**
133
+ * Removes the specified element from the WeakSet.
134
+ * @returns Returns true if the element existed and has been removed, or false if the element does not exist.
135
+ */
136
+ delete(value: T): boolean;
137
+ /**
138
+ * @returns a boolean indicating whether a value exists in the WeakSet or not.
139
+ */
140
+ has(value: T): boolean;
141
+ }
142
+
143
+ interface WeakSetConstructor {
144
+ new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
145
+ readonly prototype: WeakSet<WeakKey>;
146
+ }
147
+ declare var WeakSet: WeakSetConstructor;