@tsonic/js 0.1.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.
@@ -0,0 +1,735 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: Tsonic.JSRuntime
3
+ // Assembly: Tsonic.JSRuntime
4
+
5
+ // Primitive type aliases from @tsonic/core
6
+ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
8
+ // Import types from other namespaces
9
+ import * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic.js";
10
+ import type { IEnumerable as IEnumerable__System_Collections_Generic, IEnumerator, KeyValuePair, List } from "@tsonic/dotnet/System.Collections.Generic.js";
11
+ import * as System_Collections_Internal from "@tsonic/dotnet/System.Collections.js";
12
+ import type { IEnumerable } from "@tsonic/dotnet/System.Collections.js";
13
+ import * as System_Internal from "@tsonic/dotnet/System.js";
14
+ import type { Action, Boolean as ClrBoolean, Byte, Comparison, Double, Func, Int16, Int32, Int64, Nullable, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, ValueTuple, Void } from "@tsonic/dotnet/System.js";
15
+
16
+ export interface ArrayBuffer$instance {
17
+ readonly byteLength: int;
18
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): ArrayBuffer;
19
+ }
20
+
21
+
22
+ export const ArrayBuffer: {
23
+ new(byteLength: int): ArrayBuffer;
24
+ };
25
+
26
+
27
+ export type ArrayBuffer = ArrayBuffer$instance;
28
+
29
+ export interface Date$instance {
30
+ getDate(): int;
31
+ getDay(): int;
32
+ getFullYear(): int;
33
+ getHours(): int;
34
+ getMilliseconds(): int;
35
+ getMinutes(): int;
36
+ getMonth(): int;
37
+ getSeconds(): int;
38
+ getTime(): long;
39
+ getTimezoneOffset(): int;
40
+ getUTCDate(): int;
41
+ getUTCDay(): int;
42
+ getUTCFullYear(): int;
43
+ getUTCHours(): int;
44
+ getUTCMilliseconds(): int;
45
+ getUTCMinutes(): int;
46
+ getUTCMonth(): int;
47
+ getUTCSeconds(): int;
48
+ setDate(day: int): double;
49
+ setFullYear(year: int, month?: Nullable<System_Internal.Int32>, day?: Nullable<System_Internal.Int32>): double;
50
+ setHours(hour: int, min?: Nullable<System_Internal.Int32>, sec?: Nullable<System_Internal.Int32>, ms?: Nullable<System_Internal.Int32>): double;
51
+ setMilliseconds(ms: int): double;
52
+ setMinutes(min: int, sec?: Nullable<System_Internal.Int32>, ms?: Nullable<System_Internal.Int32>): double;
53
+ setMonth(month: int, day?: Nullable<System_Internal.Int32>): double;
54
+ setSeconds(sec: int, ms?: Nullable<System_Internal.Int32>): double;
55
+ setTime(milliseconds: double): double;
56
+ setUTCDate(day: int): double;
57
+ setUTCFullYear(year: int, month?: Nullable<System_Internal.Int32>, day?: Nullable<System_Internal.Int32>): double;
58
+ setUTCHours(hour: int, min?: Nullable<System_Internal.Int32>, sec?: Nullable<System_Internal.Int32>, ms?: Nullable<System_Internal.Int32>): double;
59
+ setUTCMilliseconds(ms: int): double;
60
+ setUTCMinutes(min: int, sec?: Nullable<System_Internal.Int32>, ms?: Nullable<System_Internal.Int32>): double;
61
+ setUTCMonth(month: int, day?: Nullable<System_Internal.Int32>): double;
62
+ setUTCSeconds(sec: int, ms?: Nullable<System_Internal.Int32>): double;
63
+ toDateString(): string;
64
+ toISOString(): string;
65
+ toJSON(): string;
66
+ toLocaleDateString(): string;
67
+ toLocaleString(): string;
68
+ toLocaleTimeString(): string;
69
+ toString(): string;
70
+ toTimeString(): string;
71
+ toUTCString(): string;
72
+ valueOf(): long;
73
+ }
74
+
75
+
76
+ export const Date: {
77
+ new(): Date;
78
+ new(milliseconds: double): Date;
79
+ new(dateString: string): Date;
80
+ new(year: int, month: int, day: int, hours: int, minutes: int, seconds: int, milliseconds: int): Date;
81
+ now(): long;
82
+ parse(dateString: string): double;
83
+ UTC(year: int, month: int, day?: int, hours?: int, minutes?: int, seconds?: int, milliseconds?: int): double;
84
+ };
85
+
86
+
87
+ export type Date = Date$instance;
88
+
89
+ export interface Float32Array$instance {
90
+ readonly byteLength: int;
91
+ item: float;
92
+ readonly length: int;
93
+ at(index: int): Nullable<System_Internal.Single>;
94
+ fill(value: float, start?: int, end?: Nullable<System_Internal.Int32>): Float32Array;
95
+ getEnumerator(): IEnumerator<System_Internal.Single>;
96
+ includes(value: float, fromIndex?: int): boolean;
97
+ indexOf(value: float, fromIndex?: int): int;
98
+ join(separator?: string): string;
99
+ reverse(): Float32Array;
100
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.Single>, offset?: int): void;
101
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Float32Array;
102
+ sort(compareFn?: Comparison<System_Internal.Single>): Float32Array;
103
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Float32Array;
104
+ }
105
+
106
+
107
+ export const Float32Array: {
108
+ new(length: int): Float32Array;
109
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.Single>): Float32Array;
110
+ new(values: float[]): Float32Array;
111
+ readonly BYTES_PER_ELEMENT: int;
112
+ };
113
+
114
+
115
+ export type Float32Array = Float32Array$instance;
116
+
117
+ export interface Float64Array$instance {
118
+ readonly byteLength: int;
119
+ item: double;
120
+ readonly length: int;
121
+ at(index: int): Nullable<System_Internal.Double>;
122
+ fill(value: double, start?: int, end?: Nullable<System_Internal.Int32>): Float64Array;
123
+ getEnumerator(): IEnumerator<System_Internal.Double>;
124
+ includes(value: double, fromIndex?: int): boolean;
125
+ indexOf(value: double, fromIndex?: int): int;
126
+ join(separator?: string): string;
127
+ reverse(): Float64Array;
128
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.Double>, offset?: int): void;
129
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Float64Array;
130
+ sort(compareFn?: Comparison<System_Internal.Double>): Float64Array;
131
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Float64Array;
132
+ }
133
+
134
+
135
+ export const Float64Array: {
136
+ new(length: int): Float64Array;
137
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.Double>): Float64Array;
138
+ new(values: double[]): Float64Array;
139
+ readonly BYTES_PER_ELEMENT: int;
140
+ };
141
+
142
+
143
+ export type Float64Array = Float64Array$instance;
144
+
145
+ export interface Int16Array$instance {
146
+ readonly byteLength: int;
147
+ item: short;
148
+ readonly length: int;
149
+ at(index: int): Nullable<System_Internal.Int16>;
150
+ fill(value: short, start?: int, end?: Nullable<System_Internal.Int32>): Int16Array;
151
+ getEnumerator(): IEnumerator<System_Internal.Int16>;
152
+ includes(value: short, fromIndex?: int): boolean;
153
+ indexOf(value: short, fromIndex?: int): int;
154
+ join(separator?: string): string;
155
+ reverse(): Int16Array;
156
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.Int16>, offset?: int): void;
157
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Int16Array;
158
+ sort(compareFn?: Comparison<System_Internal.Int16>): Int16Array;
159
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Int16Array;
160
+ }
161
+
162
+
163
+ export const Int16Array: {
164
+ new(length: int): Int16Array;
165
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.Int16>): Int16Array;
166
+ new(values: short[]): Int16Array;
167
+ readonly BYTES_PER_ELEMENT: int;
168
+ };
169
+
170
+
171
+ export type Int16Array = Int16Array$instance;
172
+
173
+ export interface Int32Array$instance {
174
+ readonly byteLength: int;
175
+ item: int;
176
+ readonly length: int;
177
+ at(index: int): Nullable<System_Internal.Int32>;
178
+ fill(value: int, start?: int, end?: Nullable<System_Internal.Int32>): Int32Array;
179
+ getEnumerator(): IEnumerator<System_Internal.Int32>;
180
+ includes(value: int, fromIndex?: int): boolean;
181
+ indexOf(value: int, fromIndex?: int): int;
182
+ join(separator?: string): string;
183
+ reverse(): Int32Array;
184
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.Int32>, offset?: int): void;
185
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Int32Array;
186
+ sort(compareFn?: Comparison<System_Internal.Int32>): Int32Array;
187
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Int32Array;
188
+ }
189
+
190
+
191
+ export const Int32Array: {
192
+ new(length: int): Int32Array;
193
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.Int32>): Int32Array;
194
+ new(values: int[]): Int32Array;
195
+ readonly BYTES_PER_ELEMENT: int;
196
+ };
197
+
198
+
199
+ export type Int32Array = Int32Array$instance;
200
+
201
+ export interface Int8Array$instance {
202
+ readonly byteLength: int;
203
+ item: sbyte;
204
+ readonly length: int;
205
+ at(index: int): Nullable<System_Internal.SByte>;
206
+ fill(value: sbyte, start?: int, end?: Nullable<System_Internal.Int32>): Int8Array;
207
+ getEnumerator(): IEnumerator<System_Internal.SByte>;
208
+ includes(value: sbyte, fromIndex?: int): boolean;
209
+ indexOf(value: sbyte, fromIndex?: int): int;
210
+ join(separator?: string): string;
211
+ reverse(): Int8Array;
212
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.SByte>, offset?: int): void;
213
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Int8Array;
214
+ sort(compareFn?: Comparison<System_Internal.SByte>): Int8Array;
215
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Int8Array;
216
+ }
217
+
218
+
219
+ export const Int8Array: {
220
+ new(length: int): Int8Array;
221
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.SByte>): Int8Array;
222
+ new(values: sbyte[]): Int8Array;
223
+ readonly BYTES_PER_ELEMENT: int;
224
+ };
225
+
226
+
227
+ export type Int8Array = Int8Array$instance;
228
+
229
+ export interface JSArray_1$instance<T> {
230
+ item: T;
231
+ readonly length: int;
232
+ at(index: int): T;
233
+ concat(...items: unknown[]): JSArray_1<T>;
234
+ copyWithin(target: int, start?: int, end?: Nullable<System_Internal.Int32>): JSArray_1<T>;
235
+ entries(): IEnumerable__System_Collections_Generic<ValueTuple<System_Internal.Int32, T>>;
236
+ every(callback: Func<T, System_Internal.Boolean>): boolean;
237
+ every(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): boolean;
238
+ fill(value: T, start?: int, end?: Nullable<System_Internal.Int32>): JSArray_1<T>;
239
+ filter(callback: Func<T, System_Internal.Boolean>): JSArray_1<T>;
240
+ filter(callback: Func<T, System_Internal.Int32, System_Internal.Boolean>): JSArray_1<T>;
241
+ filter(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): JSArray_1<T>;
242
+ find(callback: Func<T, System_Internal.Boolean>): T;
243
+ find(callback: Func<T, System_Internal.Int32, System_Internal.Boolean>): T;
244
+ find(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): T;
245
+ findIndex(callback: Func<T, System_Internal.Boolean>): int;
246
+ findIndex(callback: Func<T, System_Internal.Int32, System_Internal.Boolean>): int;
247
+ findIndex(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): int;
248
+ findLast(callback: Func<T, System_Internal.Boolean>): T;
249
+ findLast(callback: Func<T, System_Internal.Int32, System_Internal.Boolean>): T;
250
+ findLast(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): T;
251
+ findLastIndex(callback: Func<T, System_Internal.Boolean>): int;
252
+ findLastIndex(callback: Func<T, System_Internal.Int32, System_Internal.Boolean>): int;
253
+ findLastIndex(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): int;
254
+ flat(depth?: int): JSArray_1<unknown>;
255
+ flatMap<TResult>(callback: Func<T, System_Internal.Int32, JSArray_1<T>, unknown>): JSArray_1<TResult>;
256
+ forEach(callback: Action<T>): void;
257
+ forEach(callback: Action<T, System_Internal.Int32>): void;
258
+ forEach(callback: Action<T, System_Internal.Int32, JSArray_1<T>>): void;
259
+ getEnumerator(): IEnumerator<T>;
260
+ includes(searchElement: T): boolean;
261
+ indexOf(searchElement: T, fromIndex?: int): int;
262
+ join(separator?: string): string;
263
+ keys(): IEnumerable__System_Collections_Generic<System_Internal.Int32>;
264
+ lastIndexOf(searchElement: T, fromIndex?: Nullable<System_Internal.Int32>): int;
265
+ map<TResult>(callback: Func<T, TResult>): JSArray_1<TResult>;
266
+ map<TResult>(callback: Func<T, System_Internal.Int32, TResult>): JSArray_1<TResult>;
267
+ map<TResult>(callback: Func<T, System_Internal.Int32, JSArray_1<T>, TResult>): JSArray_1<TResult>;
268
+ pop(): T;
269
+ push(item: T): int;
270
+ push(...items: T[]): int;
271
+ reduce<TResult>(callback: Func<TResult, T, TResult>, initialValue: TResult): TResult;
272
+ reduce<TResult>(callback: Func<TResult, T, System_Internal.Int32, TResult>, initialValue: TResult): TResult;
273
+ reduce<TResult>(callback: Func<TResult, T, System_Internal.Int32, JSArray_1<T>, TResult>, initialValue: TResult): TResult;
274
+ reduce(callback: Func<T, T, T>): T;
275
+ reduceRight<TResult>(callback: Func<TResult, T, TResult>, initialValue: TResult): TResult;
276
+ reduceRight<TResult>(callback: Func<TResult, T, System_Internal.Int32, TResult>, initialValue: TResult): TResult;
277
+ reduceRight<TResult>(callback: Func<TResult, T, System_Internal.Int32, JSArray_1<T>, TResult>, initialValue: TResult): TResult;
278
+ reverse(): JSArray_1<T>;
279
+ setLength(newLength: int): void;
280
+ shift(): T;
281
+ slice(start?: int, end?: Nullable<System_Internal.Int32>): JSArray_1<T>;
282
+ some(callback: Func<T, System_Internal.Boolean>): boolean;
283
+ some(callback: Func<T, System_Internal.Int32, JSArray_1<T>, System_Internal.Boolean>): boolean;
284
+ sort(compareFunc?: Func<T, T, System_Internal.Double>): JSArray_1<T>;
285
+ splice(start: int, deleteCount?: Nullable<System_Internal.Int32>, ...items: T[]): JSArray_1<T>;
286
+ toArray(): T[];
287
+ toList(): List<T>;
288
+ toLocaleString(): string;
289
+ toReversed(): JSArray_1<T>;
290
+ toSorted(compareFunc?: Func<T, T, System_Internal.Double>): JSArray_1<T>;
291
+ toSpliced(start: int, deleteCount?: Nullable<System_Internal.Int32>, ...items: T[]): JSArray_1<T>;
292
+ toString(): string;
293
+ unshift(item: T): int;
294
+ unshift(...items: T[]): int;
295
+ values(): IEnumerable__System_Collections_Generic<T>;
296
+ with_(index: int, value: T): JSArray_1<T>;
297
+ }
298
+
299
+
300
+ export const JSArray_1: {
301
+ new<T>(): JSArray_1<T>;
302
+ new<T>(capacity: int): JSArray_1<T>;
303
+ new<T>(source: T[]): JSArray_1<T>;
304
+ new<T>(source: List<T>): JSArray_1<T>;
305
+ new<T>(source: IEnumerable__System_Collections_Generic<T>): JSArray_1<T>;
306
+ from_<T, TSource, TResult>(iterable: IEnumerable__System_Collections_Generic<TSource>, mapFunc: Func<TSource, System_Internal.Int32, TResult>): JSArray_1<TResult>;
307
+ from_<T>(iterable: IEnumerable__System_Collections_Generic<T>): JSArray_1<T>;
308
+ isArray<T>(value: unknown): boolean;
309
+ of_<T>(...items: T[]): JSArray_1<T>;
310
+ };
311
+
312
+
313
+ export type JSArray_1<T> = JSArray_1$instance<T>;
314
+
315
+ export interface Map_2$instance<K, V> {
316
+ readonly size: int;
317
+ clear(): void;
318
+ delete_(key: K): boolean;
319
+ entries(): IEnumerable__System_Collections_Generic<ValueTuple<K, V>>;
320
+ forEach(callback: Action<V, K, Map_2<K, V>>): void;
321
+ forEach(callback: Action<V, K>): void;
322
+ forEach(callback: Action<V>): void;
323
+ get_(key: K): V | undefined;
324
+ getEnumerator(): IEnumerator<KeyValuePair<K, V>>;
325
+ has(key: K): boolean;
326
+ keys(): IEnumerable__System_Collections_Generic<K>;
327
+ set_(key: K, value: V): Map_2<K, V>;
328
+ values(): IEnumerable__System_Collections_Generic<V>;
329
+ }
330
+
331
+
332
+ export const Map_2: {
333
+ new<K, V>(): Map_2<K, V>;
334
+ new<K, V>(entries: IEnumerable__System_Collections_Generic<ValueTuple<K, V>>): Map_2<K, V>;
335
+ };
336
+
337
+
338
+ export type Map_2<K, V> = Map_2$instance<K, V>;
339
+
340
+ export interface RegExp$instance {
341
+ readonly dotAll: boolean;
342
+ readonly flags: string;
343
+ readonly global: boolean;
344
+ readonly ignoreCase: boolean;
345
+ lastIndex: int;
346
+ readonly multiline: boolean;
347
+ readonly source: string;
348
+ readonly sticky: boolean;
349
+ readonly unicode: boolean;
350
+ exec(str: string): RegExpMatchResult | undefined;
351
+ test(str: string): boolean;
352
+ toString(): string;
353
+ }
354
+
355
+
356
+ export const RegExp: {
357
+ new(pattern: string): RegExp;
358
+ new(pattern: string, flags: string): RegExp;
359
+ };
360
+
361
+
362
+ export type RegExp = RegExp$instance;
363
+
364
+ export interface RegExpMatchResult$instance {
365
+ readonly groups: (string | undefined)[];
366
+ readonly index: int;
367
+ readonly input: string;
368
+ readonly item: string;
369
+ readonly length: int;
370
+ readonly value: string;
371
+ }
372
+
373
+
374
+ export const RegExpMatchResult: {
375
+ new(value: string, index: int, input: string, groups: string[]): RegExpMatchResult;
376
+ };
377
+
378
+
379
+ export type RegExpMatchResult = RegExpMatchResult$instance;
380
+
381
+ export interface Set_1$instance<T> {
382
+ readonly size: int;
383
+ add(value: T): Set_1<T>;
384
+ clear(): void;
385
+ delete_(value: T): boolean;
386
+ difference(other: Set_1<T>): Set_1<T>;
387
+ entries(): IEnumerable__System_Collections_Generic<ValueTuple<T, T>>;
388
+ forEach(callback: Action<T, T, Set_1<T>>): void;
389
+ forEach(callback: Action<T, T>): void;
390
+ forEach(callback: Action<T>): void;
391
+ getEnumerator(): IEnumerator<T>;
392
+ has(value: T): boolean;
393
+ intersection(other: Set_1<T>): Set_1<T>;
394
+ isDisjointFrom(other: Set_1<T>): boolean;
395
+ isSubsetOf(other: Set_1<T>): boolean;
396
+ isSupersetOf(other: Set_1<T>): boolean;
397
+ keys(): IEnumerable__System_Collections_Generic<T>;
398
+ symmetricDifference(other: Set_1<T>): Set_1<T>;
399
+ union(other: Set_1<T>): Set_1<T>;
400
+ values(): IEnumerable__System_Collections_Generic<T>;
401
+ }
402
+
403
+
404
+ export const Set_1: {
405
+ new<T>(): Set_1<T>;
406
+ new<T>(values: IEnumerable__System_Collections_Generic<T>): Set_1<T>;
407
+ };
408
+
409
+
410
+ export type Set_1<T> = Set_1$instance<T>;
411
+
412
+ export interface Uint16Array$instance {
413
+ readonly byteLength: int;
414
+ item: ushort;
415
+ readonly length: int;
416
+ at(index: int): Nullable<System_Internal.UInt16>;
417
+ fill(value: ushort, start?: int, end?: Nullable<System_Internal.Int32>): Uint16Array;
418
+ getEnumerator(): IEnumerator<System_Internal.UInt16>;
419
+ includes(value: ushort, fromIndex?: int): boolean;
420
+ indexOf(value: ushort, fromIndex?: int): int;
421
+ join(separator?: string): string;
422
+ reverse(): Uint16Array;
423
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.UInt16>, offset?: int): void;
424
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Uint16Array;
425
+ sort(compareFn?: Comparison<System_Internal.UInt16>): Uint16Array;
426
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Uint16Array;
427
+ }
428
+
429
+
430
+ export const Uint16Array: {
431
+ new(length: int): Uint16Array;
432
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.UInt16>): Uint16Array;
433
+ new(values: ushort[]): Uint16Array;
434
+ readonly BYTES_PER_ELEMENT: int;
435
+ };
436
+
437
+
438
+ export type Uint16Array = Uint16Array$instance;
439
+
440
+ export interface Uint32Array$instance {
441
+ readonly byteLength: int;
442
+ item: uint;
443
+ readonly length: int;
444
+ at(index: int): Nullable<System_Internal.UInt32>;
445
+ fill(value: uint, start?: int, end?: Nullable<System_Internal.Int32>): Uint32Array;
446
+ getEnumerator(): IEnumerator<System_Internal.UInt32>;
447
+ includes(value: uint, fromIndex?: int): boolean;
448
+ indexOf(value: uint, fromIndex?: int): int;
449
+ join(separator?: string): string;
450
+ reverse(): Uint32Array;
451
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.UInt32>, offset?: int): void;
452
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Uint32Array;
453
+ sort(compareFn?: Comparison<System_Internal.UInt32>): Uint32Array;
454
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Uint32Array;
455
+ }
456
+
457
+
458
+ export const Uint32Array: {
459
+ new(length: int): Uint32Array;
460
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.UInt32>): Uint32Array;
461
+ new(values: uint[]): Uint32Array;
462
+ readonly BYTES_PER_ELEMENT: int;
463
+ };
464
+
465
+
466
+ export type Uint32Array = Uint32Array$instance;
467
+
468
+ export interface Uint8Array$instance {
469
+ readonly byteLength: int;
470
+ item: byte;
471
+ readonly length: int;
472
+ at(index: int): Nullable<System_Internal.Byte>;
473
+ fill(value: byte, start?: int, end?: Nullable<System_Internal.Int32>): Uint8Array;
474
+ getEnumerator(): IEnumerator<System_Internal.Byte>;
475
+ includes(value: byte, fromIndex?: int): boolean;
476
+ indexOf(value: byte, fromIndex?: int): int;
477
+ join(separator?: string): string;
478
+ reverse(): Uint8Array;
479
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.Byte>, offset?: int): void;
480
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Uint8Array;
481
+ sort(compareFn?: Comparison<System_Internal.Byte>): Uint8Array;
482
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Uint8Array;
483
+ }
484
+
485
+
486
+ export const Uint8Array: {
487
+ new(length: int): Uint8Array;
488
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.Byte>): Uint8Array;
489
+ new(values: byte[]): Uint8Array;
490
+ readonly BYTES_PER_ELEMENT: int;
491
+ };
492
+
493
+
494
+ export type Uint8Array = Uint8Array$instance;
495
+
496
+ export interface Uint8ClampedArray$instance {
497
+ readonly byteLength: int;
498
+ item: byte;
499
+ readonly length: int;
500
+ at(index: int): Nullable<System_Internal.Byte>;
501
+ fill(value: byte, start?: int, end?: Nullable<System_Internal.Int32>): Uint8ClampedArray;
502
+ getEnumerator(): IEnumerator<System_Internal.Byte>;
503
+ includes(value: byte, fromIndex?: int): boolean;
504
+ indexOf(value: byte, fromIndex?: int): int;
505
+ join(separator?: string): string;
506
+ reverse(): Uint8ClampedArray;
507
+ set_(array: IEnumerable__System_Collections_Generic<System_Internal.Byte>, offset?: int): void;
508
+ setClamped(index: int, value: int): void;
509
+ slice(begin?: int, end?: Nullable<System_Internal.Int32>): Uint8ClampedArray;
510
+ sort(compareFn?: Comparison<System_Internal.Byte>): Uint8ClampedArray;
511
+ subarray(begin?: int, end?: Nullable<System_Internal.Int32>): Uint8ClampedArray;
512
+ }
513
+
514
+
515
+ export const Uint8ClampedArray: {
516
+ new(length: int): Uint8ClampedArray;
517
+ new(values: IEnumerable__System_Collections_Generic<System_Internal.Byte>): Uint8ClampedArray;
518
+ new(values: byte[]): Uint8ClampedArray;
519
+ readonly BYTES_PER_ELEMENT: int;
520
+ };
521
+
522
+
523
+ export type Uint8ClampedArray = Uint8ClampedArray$instance;
524
+
525
+ export interface WeakMap_2$instance<K, V> {
526
+ delete_(key: K): boolean;
527
+ get_(key: K): V | undefined;
528
+ has(key: K): boolean;
529
+ set_(key: K, value: V): WeakMap_2<K, V>;
530
+ }
531
+
532
+
533
+ export const WeakMap_2: {
534
+ new<K, V>(): WeakMap_2<K, V>;
535
+ };
536
+
537
+
538
+ export type WeakMap_2<K, V> = WeakMap_2$instance<K, V>;
539
+
540
+ export interface WeakSet_1$instance<T> {
541
+ add(value: T): WeakSet_1<T>;
542
+ delete_(value: T): boolean;
543
+ has(value: T): boolean;
544
+ }
545
+
546
+
547
+ export const WeakSet_1: {
548
+ new<T>(): WeakSet_1<T>;
549
+ };
550
+
551
+
552
+ export type WeakSet_1<T> = WeakSet_1$instance<T>;
553
+
554
+ export abstract class console$instance {
555
+ static assert(condition: boolean, message?: string): void;
556
+ static clear(): void;
557
+ static count(label?: string): void;
558
+ static countReset(label?: string): void;
559
+ static debug(...data: unknown[]): void;
560
+ static dir(obj: unknown): void;
561
+ static dirxml(obj: unknown): void;
562
+ static error(...data: unknown[]): void;
563
+ static group(...data: unknown[]): void;
564
+ static groupCollapsed(...data: unknown[]): void;
565
+ static groupEnd(): void;
566
+ static info(...data: unknown[]): void;
567
+ static log(...data: unknown[]): void;
568
+ static table(data: unknown): void;
569
+ static time(label?: string): void;
570
+ static timeEnd(label?: string): void;
571
+ static timeLog(label?: string, ...data: unknown[]): void;
572
+ static trace(...data: unknown[]): void;
573
+ static warn(...data: unknown[]): void;
574
+ }
575
+
576
+
577
+ export type console = console$instance;
578
+
579
+ export abstract class Globals$instance {
580
+ static readonly undefined: unknown | undefined;
581
+ static readonly infinity: double;
582
+ static readonly naN: double;
583
+ static boolean_(value: unknown): boolean;
584
+ static decodeURI(uri: string): string;
585
+ static decodeURIComponent(component: string): string;
586
+ static encodeURI(uri: string): string;
587
+ static encodeURIComponent(component: string): string;
588
+ static isFinite(value: double): boolean;
589
+ static isNaN(value: double): boolean;
590
+ static number_(value: unknown): double;
591
+ static parseFloat(str: string): double;
592
+ static parseInt(str: string, radix?: Nullable<System_Internal.Int32>): Nullable<System_Internal.Int64>;
593
+ static string_(value: unknown): string;
594
+ }
595
+
596
+
597
+ export type Globals = Globals$instance;
598
+
599
+ export abstract class JSON$instance {
600
+ static parse<T>(text: string): T;
601
+ static stringify(value: unknown): string;
602
+ }
603
+
604
+
605
+ export type JSON = JSON$instance;
606
+
607
+ export abstract class Math$instance {
608
+ static readonly E: double;
609
+ static readonly PI: double;
610
+ static readonly LN2: double;
611
+ static readonly LN10: double;
612
+ static readonly LOG2E: double;
613
+ static readonly LOG10E: double;
614
+ static readonly SQRT1_2: double;
615
+ static readonly SQRT2: double;
616
+ static abs(x: double): double;
617
+ static acos(x: double): double;
618
+ static acosh(x: double): double;
619
+ static asin(x: double): double;
620
+ static asinh(x: double): double;
621
+ static atan(x: double): double;
622
+ static atan2(y: double, x: double): double;
623
+ static atanh(x: double): double;
624
+ static cbrt(x: double): double;
625
+ static ceil(x: double): long;
626
+ static clz32(x: int): int;
627
+ static cos(x: double): double;
628
+ static cosh(x: double): double;
629
+ static exp(x: double): double;
630
+ static expm1(x: double): double;
631
+ static f16round(x: double): double;
632
+ static floor(x: double): long;
633
+ static fround(x: double): double;
634
+ static hypot(...values: double[]): double;
635
+ static imul(a: int, b: int): int;
636
+ static log(x: double): double;
637
+ static log10(x: double): double;
638
+ static log1p(x: double): double;
639
+ static log2(x: double): double;
640
+ static max(...values: double[]): double;
641
+ static min(...values: double[]): double;
642
+ static pow(x: double, y: double): double;
643
+ static random(): double;
644
+ static round(x: double): long;
645
+ static sign(x: double): int;
646
+ static sin(x: double): double;
647
+ static sinh(x: double): double;
648
+ static sqrt(x: double): double;
649
+ static tan(x: double): double;
650
+ static tanh(x: double): double;
651
+ static trunc(x: double): long;
652
+ }
653
+
654
+
655
+ export type Math = Math$instance;
656
+
657
+ export abstract class Number$instance {
658
+ static readonly MAX_VALUE: double;
659
+ static readonly MIN_VALUE: double;
660
+ static readonly MAX_SAFE_INTEGER: double;
661
+ static readonly MIN_SAFE_INTEGER: double;
662
+ static readonly POSITIVE_INFINITY: double;
663
+ static readonly NEGATIVE_INFINITY: double;
664
+ static readonly naN: double;
665
+ static readonly EPSILON: double;
666
+ static isFinite(value: double): boolean;
667
+ static isInteger(value: double): boolean;
668
+ static isNaN(value: double): boolean;
669
+ static isSafeInteger(value: double): boolean;
670
+ static parseFloat(str: string): double;
671
+ static parseInt(str: string, radix?: Nullable<System_Internal.Int32>): Nullable<System_Internal.Int64>;
672
+ }
673
+
674
+
675
+ export type Number = Number$instance;
676
+
677
+ export abstract class String$instance {
678
+ static at(str: string, index: int): string;
679
+ static charAt(str: string, index: int): string;
680
+ static charCodeAt(str: string, index: int): int;
681
+ static codePointAt(str: string, index: int): int;
682
+ static concat(str: string, ...strings: string[]): string;
683
+ static endsWith(str: string, searchString: string): boolean;
684
+ static fromCharCode(...codes: int[]): string;
685
+ static fromCodePoint(...codePoints: int[]): string;
686
+ static includes(str: string, searchString: string): boolean;
687
+ static indexOf(str: string, searchString: string, position?: int): int;
688
+ static isWellFormed(str: string): boolean;
689
+ static lastIndexOf(str: string, searchString: string, position?: Nullable<System_Internal.Int32>): int;
690
+ static length(str: string): int;
691
+ static localeCompare(str: string, compareString: string): int;
692
+ static match(str: string, pattern: string): List<System_Internal.String> | undefined;
693
+ static matchAll(str: string, pattern: string): List<List<System_Internal.String>>;
694
+ static normalize(str: string, form?: string): string;
695
+ static padEnd(str: string, targetLength: int, padString?: string): string;
696
+ static padStart(str: string, targetLength: int, padString?: string): string;
697
+ static raw(template: List<System_Internal.String>, ...substitutions: unknown[]): string;
698
+ static repeat(str: string, count: int): string;
699
+ static replace(str: string, search: string, replacement: string): string;
700
+ static replaceAll(str: string, search: string, replacement: string): string;
701
+ static search(str: string, pattern: string): int;
702
+ static slice(str: string, start: int, end?: Nullable<System_Internal.Int32>): string;
703
+ static split(str: string, separator: string, limit?: Nullable<System_Internal.Int32>): List<System_Internal.String>;
704
+ static startsWith(str: string, searchString: string): boolean;
705
+ static substr(str: string, start: int, length?: Nullable<System_Internal.Int32>): string;
706
+ static substring(str: string, start: int, end?: Nullable<System_Internal.Int32>): string;
707
+ static toLocaleLowerCase(str: string): string;
708
+ static toLocaleUpperCase(str: string): string;
709
+ static toLowerCase(str: string): string;
710
+ static toString(str: string): string;
711
+ static toUpperCase(str: string): string;
712
+ static toWellFormed(str: string): string;
713
+ static trim(str: string): string;
714
+ static trimEnd(str: string): string;
715
+ static trimLeft(str: string): string;
716
+ static trimRight(str: string): string;
717
+ static trimStart(str: string): string;
718
+ static valueOf(str: string): string;
719
+ }
720
+
721
+
722
+ export type String = String$instance;
723
+
724
+ export abstract class Timers$instance {
725
+ static clearInterval(id: int): void;
726
+ static clearTimeout(id: int): void;
727
+ static setInterval<T>(callback: Action<T>, intervalMs: int, arg: T): int;
728
+ static setInterval(callback: Action, intervalMs: int): int;
729
+ static setTimeout<T>(callback: Action<T>, delayMs: int, arg: T): int;
730
+ static setTimeout(callback: Action, delayMs?: int): int;
731
+ }
732
+
733
+
734
+ export type Timers = Timers$instance;
735
+