strict-ts-lib-v5.2-branded 0.4.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 (81) hide show
  1. package/README.md +30 -0
  2. package/libs/decorators/index.d.ts +364 -0
  3. package/libs/decorators/legacy/index.d.ts +19 -0
  4. package/libs/dom/index.d.ts +35081 -0
  5. package/libs/dom/iterable/index.d.ts +743 -0
  6. package/libs/es2015/collection/index.d.ts +148 -0
  7. package/libs/es2015/core/index.d.ts +639 -0
  8. package/libs/es2015/generator/index.d.ts +65 -0
  9. package/libs/es2015/index.d.ts +12 -0
  10. package/libs/es2015/iterable/index.d.ts +569 -0
  11. package/libs/es2015/promise/index.d.ts +74 -0
  12. package/libs/es2015/proxy/index.d.ts +131 -0
  13. package/libs/es2015/reflect/index.d.ts +145 -0
  14. package/libs/es2015/symbol/index.d.ts +30 -0
  15. package/libs/es2015/symbol-wellknown/index.d.ts +336 -0
  16. package/libs/es2016/array-include/index.d.ts +133 -0
  17. package/libs/es2016/full/index.d.ts +7 -0
  18. package/libs/es2016/index.d.ts +4 -0
  19. package/libs/es2017/date/index.d.ts +23 -0
  20. package/libs/es2017/full/index.d.ts +7 -0
  21. package/libs/es2017/index.d.ts +9 -0
  22. package/libs/es2017/intl/index.d.ts +28 -0
  23. package/libs/es2017/object/index.d.ts +115 -0
  24. package/libs/es2017/sharedmemory/index.d.ts +392 -0
  25. package/libs/es2017/string/index.d.ts +35 -0
  26. package/libs/es2017/typedarrays/index.d.ts +37 -0
  27. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  28. package/libs/es2018/asynciterable/index.d.ts +31 -0
  29. package/libs/es2018/full/index.d.ts +7 -0
  30. package/libs/es2018/index.d.ts +8 -0
  31. package/libs/es2018/intl/index.d.ts +102 -0
  32. package/libs/es2018/promise/index.d.ts +14 -0
  33. package/libs/es2018/regexp/index.d.ts +21 -0
  34. package/libs/es2019/array/index.d.ts +100 -0
  35. package/libs/es2019/full/index.d.ts +7 -0
  36. package/libs/es2019/index.d.ts +8 -0
  37. package/libs/es2019/intl/index.d.ts +7 -0
  38. package/libs/es2019/object/index.d.ts +141 -0
  39. package/libs/es2019/string/index.d.ts +21 -0
  40. package/libs/es2019/symbol/index.d.ts +8 -0
  41. package/libs/es2020/bigint/index.d.ts +975 -0
  42. package/libs/es2020/date/index.d.ts +35 -0
  43. package/libs/es2020/full/index.d.ts +7 -0
  44. package/libs/es2020/index.d.ts +11 -0
  45. package/libs/es2020/intl/index.d.ts +433 -0
  46. package/libs/es2020/number/index.d.ts +15 -0
  47. package/libs/es2020/promise/index.d.ts +37 -0
  48. package/libs/es2020/sharedmemory/index.d.ts +171 -0
  49. package/libs/es2020/string/index.d.ts +12 -0
  50. package/libs/es2020/symbol-wellknown/index.d.ts +21 -0
  51. package/libs/es2021/full/index.d.ts +7 -0
  52. package/libs/es2021/index.d.ts +7 -0
  53. package/libs/es2021/intl/index.d.ts +165 -0
  54. package/libs/es2021/promise/index.d.ts +34 -0
  55. package/libs/es2021/string/index.d.ts +20 -0
  56. package/libs/es2021/weakref/index.d.ts +60 -0
  57. package/libs/es2022/array/index.d.ts +127 -0
  58. package/libs/es2022/error/index.d.ts +57 -0
  59. package/libs/es2022/full/index.d.ts +7 -0
  60. package/libs/es2022/index.d.ts +10 -0
  61. package/libs/es2022/intl/index.d.ts +115 -0
  62. package/libs/es2022/object/index.d.ts +41 -0
  63. package/libs/es2022/regexp/index.d.ts +28 -0
  64. package/libs/es2022/sharedmemory/index.d.ts +37 -0
  65. package/libs/es2022/string/index.d.ts +9 -0
  66. package/libs/es2023/array/index.d.ts +1097 -0
  67. package/libs/es2023/collection/index.d.ts +5 -0
  68. package/libs/es2023/full/index.d.ts +7 -0
  69. package/libs/es2023/index.d.ts +5 -0
  70. package/libs/es5/index.d.ts +6397 -0
  71. package/libs/es6/index.d.ts +7 -0
  72. package/libs/esnext/decorators/index.d.ts +12 -0
  73. package/libs/esnext/disposable/index.d.ts +169 -0
  74. package/libs/esnext/full/index.d.ts +7 -0
  75. package/libs/esnext/index.d.ts +6 -0
  76. package/libs/esnext/intl/index.d.ts +15 -0
  77. package/libs/scripthost/index.d.ts +310 -0
  78. package/libs/webworker/importscripts/index.d.ts +7 -0
  79. package/libs/webworker/index.d.ts +11649 -0
  80. package/libs/webworker/iterable/index.d.ts +538 -0
  81. package/package.json +23 -0
@@ -0,0 +1,1097 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ interface Array<T> {
4
+ /**
5
+ * Returns the value of the last element in the array where predicate is true, and undefined
6
+ * otherwise.
7
+ * @param predicate findLast calls predicate once for each element of the array, in descending
8
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
9
+ * immediately returns that element value. Otherwise, findLast returns undefined.
10
+ * @param thisArg If provided, it will be used as the this value for each invocation of
11
+ * predicate. If it is not provided, undefined is used instead.
12
+ */
13
+ findLast<S extends T>(
14
+ predicate: (
15
+ value: T,
16
+ index: NumberType.ArraySize,
17
+ array: readonly T[],
18
+ ) => value is S,
19
+ thisArg?: unknown,
20
+ ): S | undefined;
21
+ findLast(
22
+ predicate: (
23
+ value: T,
24
+ index: NumberType.ArraySize,
25
+ array: readonly T[],
26
+ ) => boolean,
27
+ thisArg?: unknown,
28
+ ): T | undefined;
29
+
30
+ /**
31
+ * Returns the index of the last element in the array where predicate is true, and -1
32
+ * otherwise.
33
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
34
+ * order, until it finds one where predicate returns true. If such an element is found,
35
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
36
+ * @param thisArg If provided, it will be used as the this value for each invocation of
37
+ * predicate. If it is not provided, undefined is used instead.
38
+ */
39
+ findLastIndex(
40
+ predicate: (
41
+ value: T,
42
+ index: NumberType.ArraySize,
43
+ array: readonly T[],
44
+ ) => boolean,
45
+ thisArg?: unknown,
46
+ ): NumberType.ArraySearchResult;
47
+
48
+ /**
49
+ * Returns a copy of an array with its elements reversed.
50
+ */
51
+ toReversed(): readonly T[];
52
+
53
+ /**
54
+ * Returns a copy of an array with its elements sorted.
55
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
56
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
57
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
58
+ * ```ts
59
+ * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
60
+ * ```
61
+ */
62
+ toSorted(compareFn?: (a: T, b: T) => number): readonly T[];
63
+
64
+ /**
65
+ * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
66
+ * @param start The zero-based location in the array from which to start removing elements.
67
+ * @param deleteCount The number of elements to remove.
68
+ * @param items Elements to insert into the copied array in place of the deleted elements.
69
+ * @returns A copy of the original array with the remaining elements.
70
+ */
71
+ toSpliced(
72
+ start: NumberType.ArraySizeArg,
73
+ deleteCount: NumberType.ArraySizeArg,
74
+ ...items: readonly T[]
75
+ ): readonly T[];
76
+
77
+ /**
78
+ * Copies an array and removes elements while returning the remaining elements.
79
+ * @param start The zero-based location in the array from which to start removing elements.
80
+ * @param deleteCount The number of elements to remove.
81
+ * @returns A copy of the original array with the remaining elements.
82
+ */
83
+ toSpliced(
84
+ start: NumberType.ArraySizeArg,
85
+ deleteCount?: NumberType.ArraySizeArg,
86
+ ): readonly T[];
87
+
88
+ /**
89
+ * Copies an array, then overwrites the value at the provided index with the
90
+ * given value. If the index is negative, then it replaces from the end
91
+ * of the array.
92
+ * @param index The index of the value to overwrite. If the index is
93
+ * negative, then it replaces from the end of the array.
94
+ * @param value The value to write into the copied array.
95
+ * @returns The copied array with the updated value.
96
+ */
97
+ with(index: NumberType.ArraySizeArg, value: T): readonly T[];
98
+ }
99
+
100
+ interface ReadonlyArray<T> {
101
+ /**
102
+ * Returns the value of the last element in the array where predicate is true, and undefined
103
+ * otherwise.
104
+ * @param predicate findLast calls predicate once for each element of the array, in descending
105
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
106
+ * immediately returns that element value. Otherwise, findLast returns undefined.
107
+ * @param thisArg If provided, it will be used as the this value for each invocation of
108
+ * predicate. If it is not provided, undefined is used instead.
109
+ */
110
+ findLast<S extends T>(
111
+ predicate: (
112
+ value: T,
113
+ index: NumberType.ArraySize,
114
+ array: readonly T[],
115
+ ) => value is S,
116
+ thisArg?: unknown,
117
+ ): S | undefined;
118
+ findLast(
119
+ predicate: (
120
+ value: T,
121
+ index: NumberType.ArraySize,
122
+ array: readonly T[],
123
+ ) => boolean,
124
+ thisArg?: unknown,
125
+ ): T | undefined;
126
+
127
+ /**
128
+ * Returns the index of the last element in the array where predicate is true, and -1
129
+ * otherwise.
130
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
131
+ * order, until it finds one where predicate returns true. If such an element is found,
132
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
133
+ * @param thisArg If provided, it will be used as the this value for each invocation of
134
+ * predicate. If it is not provided, undefined is used instead.
135
+ */
136
+ findLastIndex(
137
+ predicate: (
138
+ value: T,
139
+ index: NumberType.ArraySize,
140
+ array: readonly T[],
141
+ ) => boolean,
142
+ thisArg?: unknown,
143
+ ): NumberType.ArraySearchResult;
144
+
145
+ /**
146
+ * Returns a copy of an array with its elements reversed.
147
+ */
148
+ toReversed(): readonly T[];
149
+
150
+ /**
151
+ * Returns a copy of an array with its elements sorted.
152
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
153
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
154
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
155
+ * ```ts
156
+ * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
157
+ * ```
158
+ */
159
+ toSorted(compareFn?: (a: T, b: T) => number): readonly T[];
160
+
161
+ /**
162
+ * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
163
+ * @param start The zero-based location in the array from which to start removing elements.
164
+ * @param deleteCount The number of elements to remove.
165
+ * @param items Elements to insert into the copied array in place of the deleted elements.
166
+ * @returns A copy of the original array with the remaining elements.
167
+ */
168
+ toSpliced(
169
+ start: NumberType.ArraySizeArg,
170
+ deleteCount: NumberType.ArraySizeArg,
171
+ ...items: readonly T[]
172
+ ): readonly T[];
173
+
174
+ /**
175
+ * Copies an array and removes elements while returning the remaining elements.
176
+ * @param start The zero-based location in the array from which to start removing elements.
177
+ * @param deleteCount The number of elements to remove.
178
+ * @returns A copy of the original array with the remaining elements.
179
+ */
180
+ toSpliced(
181
+ start: NumberType.ArraySizeArg,
182
+ deleteCount?: NumberType.ArraySizeArg,
183
+ ): readonly T[];
184
+
185
+ /**
186
+ * Copies an array, then overwrites the value at the provided index with the
187
+ * given value. If the index is negative, then it replaces from the end
188
+ * of the array
189
+ * @param index The index of the value to overwrite. If the index is
190
+ * negative, then it replaces from the end of the array.
191
+ * @param value The value to write into the copied array.
192
+ * @returns The copied array with the updated value.
193
+ */
194
+ with(index: NumberType.ArraySizeArg, value: T): readonly T[];
195
+ }
196
+
197
+ interface Int8Array {
198
+ /**
199
+ * Returns the value of the last element in the array where predicate is true, and undefined
200
+ * otherwise.
201
+ * @param predicate findLast calls predicate once for each element of the array, in descending
202
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
203
+ * immediately returns that element value. Otherwise, findLast returns undefined.
204
+ * @param thisArg If provided, it will be used as the this value for each invocation of
205
+ * predicate. If it is not provided, undefined is used instead.
206
+ */
207
+ findLast<S extends import('ts-type-forge').Int8>(
208
+ predicate: (
209
+ value: import('ts-type-forge').Int8,
210
+ index: NumberType.TypedArraySize,
211
+ array: Int8Array,
212
+ ) => value is S,
213
+ thisArg?: unknown,
214
+ ): S | undefined;
215
+ findLast(
216
+ predicate: (
217
+ value: import('ts-type-forge').Int8,
218
+ index: NumberType.TypedArraySize,
219
+ array: Int8Array,
220
+ ) => boolean,
221
+ thisArg?: unknown,
222
+ ): import('ts-type-forge').Int8 | undefined;
223
+
224
+ /**
225
+ * Returns the index of the last element in the array where predicate is true, and -1
226
+ * otherwise.
227
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
228
+ * order, until it finds one where predicate returns true. If such an element is found,
229
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
230
+ * @param thisArg If provided, it will be used as the this value for each invocation of
231
+ * predicate. If it is not provided, undefined is used instead.
232
+ */
233
+ findLastIndex(
234
+ predicate: (
235
+ value: import('ts-type-forge').Int8,
236
+ index: NumberType.TypedArraySize,
237
+ array: Int8Array,
238
+ ) => boolean,
239
+ thisArg?: unknown,
240
+ ): NumberType.TypedArraySearchResult;
241
+
242
+ /**
243
+ * Returns a copy of an array with its elements reversed.
244
+ */
245
+ toReversed(): Uint8Array;
246
+
247
+ /**
248
+ * Returns a copy of an array with its elements sorted.
249
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
250
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
251
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
252
+ * ```ts
253
+ * const myNums = Uint8Array.from([11, 2, 22, 1]);
254
+ * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
255
+ * ```
256
+ */
257
+ toSorted(
258
+ compareFn?: (
259
+ a: import('ts-type-forge').Int8,
260
+ b: import('ts-type-forge').Int8,
261
+ ) => number,
262
+ ): Uint8Array;
263
+
264
+ /**
265
+ * Copies an array, then overwrites the value at the provided index with the
266
+ * given value. If the index is negative, then it replaces from the end
267
+ * of the array.
268
+ * @param index The index of the value to overwrite. If the index is
269
+ * negative, then it replaces from the end of the array.
270
+ * @param value The value to write into the copied array.
271
+ * @returns The copied array with the updated value.
272
+ */
273
+ with(
274
+ index: NumberType.TypedArraySizeArg,
275
+ value: import('ts-type-forge').Int8,
276
+ ): Uint8Array;
277
+ }
278
+
279
+ interface Uint8Array {
280
+ /**
281
+ * Returns the value of the last element in the array where predicate is true, and undefined
282
+ * otherwise.
283
+ * @param predicate findLast calls predicate once for each element of the array, in descending
284
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
285
+ * immediately returns that element value. Otherwise, findLast returns undefined.
286
+ * @param thisArg If provided, it will be used as the this value for each invocation of
287
+ * predicate. If it is not provided, undefined is used instead.
288
+ */
289
+ findLast<S extends import('ts-type-forge').Uint8>(
290
+ predicate: (
291
+ value: import('ts-type-forge').Uint8,
292
+ index: NumberType.TypedArraySize,
293
+ array: Uint8Array,
294
+ ) => value is S,
295
+ thisArg?: unknown,
296
+ ): S | undefined;
297
+ findLast(
298
+ predicate: (
299
+ value: import('ts-type-forge').Uint8,
300
+ index: NumberType.TypedArraySize,
301
+ array: Uint8Array,
302
+ ) => boolean,
303
+ thisArg?: unknown,
304
+ ): import('ts-type-forge').Uint8 | undefined;
305
+
306
+ /**
307
+ * Returns the index of the last element in the array where predicate is true, and -1
308
+ * otherwise.
309
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
310
+ * order, until it finds one where predicate returns true. If such an element is found,
311
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
312
+ * @param thisArg If provided, it will be used as the this value for each invocation of
313
+ * predicate. If it is not provided, undefined is used instead.
314
+ */
315
+ findLastIndex(
316
+ predicate: (
317
+ value: import('ts-type-forge').Uint8,
318
+ index: NumberType.TypedArraySize,
319
+ array: Uint8Array,
320
+ ) => boolean,
321
+ thisArg?: unknown,
322
+ ): NumberType.TypedArraySearchResult;
323
+
324
+ /**
325
+ * Returns a copy of an array with its elements reversed.
326
+ */
327
+ toReversed(): Uint8Array;
328
+
329
+ /**
330
+ * Returns a copy of an array with its elements sorted.
331
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
332
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
333
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
334
+ * ```ts
335
+ * const myNums = Uint8Array.from([11, 2, 22, 1]);
336
+ * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
337
+ * ```
338
+ */
339
+ toSorted(
340
+ compareFn?: (
341
+ a: import('ts-type-forge').Uint8,
342
+ b: import('ts-type-forge').Uint8,
343
+ ) => number,
344
+ ): Uint8Array;
345
+
346
+ /**
347
+ * Copies an array, then overwrites the value at the provided index with the
348
+ * given value. If the index is negative, then it replaces from the end
349
+ * of the array.
350
+ * @param index The index of the value to overwrite. If the index is
351
+ * negative, then it replaces from the end of the array.
352
+ * @param value The value to write into the copied array.
353
+ * @returns The copied array with the updated value.
354
+ */
355
+ with(
356
+ index: NumberType.TypedArraySizeArg,
357
+ value: import('ts-type-forge').Uint8,
358
+ ): Uint8Array;
359
+ }
360
+
361
+ interface Uint8ClampedArray {
362
+ /**
363
+ * Returns the value of the last element in the array where predicate is true, and undefined
364
+ * otherwise.
365
+ * @param predicate findLast calls predicate once for each element of the array, in descending
366
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
367
+ * immediately returns that element value. Otherwise, findLast returns undefined.
368
+ * @param thisArg If provided, it will be used as the this value for each invocation of
369
+ * predicate. If it is not provided, undefined is used instead.
370
+ */
371
+ findLast<S extends import('ts-type-forge').Uint8>(
372
+ predicate: (
373
+ value: import('ts-type-forge').Uint8,
374
+ index: NumberType.TypedArraySize,
375
+ array: Uint8ClampedArray,
376
+ ) => value is S,
377
+ thisArg?: unknown,
378
+ ): S | undefined;
379
+ findLast(
380
+ predicate: (
381
+ value: import('ts-type-forge').Uint8,
382
+ index: NumberType.TypedArraySize,
383
+ array: Uint8ClampedArray,
384
+ ) => boolean,
385
+ thisArg?: unknown,
386
+ ): import('ts-type-forge').Uint8 | undefined;
387
+
388
+ /**
389
+ * Returns the index of the last element in the array where predicate is true, and -1
390
+ * otherwise.
391
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
392
+ * order, until it finds one where predicate returns true. If such an element is found,
393
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
394
+ * @param thisArg If provided, it will be used as the this value for each invocation of
395
+ * predicate. If it is not provided, undefined is used instead.
396
+ */
397
+ findLastIndex(
398
+ predicate: (
399
+ value: import('ts-type-forge').Uint8,
400
+ index: NumberType.TypedArraySize,
401
+ array: Uint8ClampedArray,
402
+ ) => boolean,
403
+ thisArg?: unknown,
404
+ ): NumberType.TypedArraySearchResult;
405
+
406
+ /**
407
+ * Returns a copy of an array with its elements reversed.
408
+ */
409
+ toReversed(): Uint8ClampedArray;
410
+
411
+ /**
412
+ * Returns a copy of an array with its elements sorted.
413
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
414
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
415
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
416
+ * ```ts
417
+ * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
418
+ * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
419
+ * ```
420
+ */
421
+ toSorted(
422
+ compareFn?: (
423
+ a: import('ts-type-forge').Uint8,
424
+ b: import('ts-type-forge').Uint8,
425
+ ) => number,
426
+ ): Uint8ClampedArray;
427
+
428
+ /**
429
+ * Copies an array, then overwrites the value at the provided index with the
430
+ * given value. If the index is negative, then it replaces from the end
431
+ * of the array.
432
+ * @param index The index of the value to overwrite. If the index is
433
+ * negative, then it replaces from the end of the array.
434
+ * @param value The value to write into the copied array.
435
+ * @returns The copied array with the updated value.
436
+ */
437
+ with(
438
+ index: NumberType.TypedArraySizeArg,
439
+ value: import('ts-type-forge').Uint8,
440
+ ): Uint8ClampedArray;
441
+ }
442
+
443
+ interface Int16Array {
444
+ /**
445
+ * Returns the value of the last element in the array where predicate is true, and undefined
446
+ * otherwise.
447
+ * @param predicate findLast calls predicate once for each element of the array, in descending
448
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
449
+ * immediately returns that element value. Otherwise, findLast returns undefined.
450
+ * @param thisArg If provided, it will be used as the this value for each invocation of
451
+ * predicate. If it is not provided, undefined is used instead.
452
+ */
453
+ findLast<S extends import('ts-type-forge').Int16>(
454
+ predicate: (
455
+ value: import('ts-type-forge').Int16,
456
+ index: NumberType.TypedArraySize,
457
+ array: Int16Array,
458
+ ) => value is S,
459
+ thisArg?: unknown,
460
+ ): S | undefined;
461
+ findLast(
462
+ predicate: (
463
+ value: import('ts-type-forge').Int16,
464
+ index: NumberType.TypedArraySize,
465
+ array: Int16Array,
466
+ ) => boolean,
467
+ thisArg?: unknown,
468
+ ): import('ts-type-forge').Int16 | undefined;
469
+
470
+ /**
471
+ * Returns the index of the last element in the array where predicate is true, and -1
472
+ * otherwise.
473
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
474
+ * order, until it finds one where predicate returns true. If such an element is found,
475
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
476
+ * @param thisArg If provided, it will be used as the this value for each invocation of
477
+ * predicate. If it is not provided, undefined is used instead.
478
+ */
479
+ findLastIndex(
480
+ predicate: (
481
+ value: import('ts-type-forge').Int16,
482
+ index: NumberType.TypedArraySize,
483
+ array: Int16Array,
484
+ ) => boolean,
485
+ thisArg?: unknown,
486
+ ): NumberType.TypedArraySearchResult;
487
+
488
+ /**
489
+ * Returns a copy of an array with its elements reversed.
490
+ */
491
+ toReversed(): Int16Array;
492
+
493
+ /**
494
+ * Returns a copy of an array with its elements sorted.
495
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
496
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
497
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
498
+ * ```ts
499
+ * const myNums = Int16Array.from([11, 2, -22, 1]);
500
+ * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
501
+ * ```
502
+ */
503
+ toSorted(
504
+ compareFn?: (
505
+ a: import('ts-type-forge').Int16,
506
+ b: import('ts-type-forge').Int16,
507
+ ) => number,
508
+ ): Int16Array;
509
+
510
+ /**
511
+ * Copies an array, then overwrites the value at the provided index with the
512
+ * given value. If the index is negative, then it replaces from the end
513
+ * of the array.
514
+ * @param index The index of the value to overwrite. If the index is
515
+ * negative, then it replaces from the end of the array.
516
+ * @param value The value to write into the copied array.
517
+ * @returns The copied array with the updated value.
518
+ */
519
+ with(
520
+ index: NumberType.TypedArraySizeArg,
521
+ value: import('ts-type-forge').Int16,
522
+ ): Int16Array;
523
+ }
524
+
525
+ interface Uint16Array {
526
+ /**
527
+ * Returns the value of the last element in the array where predicate is true, and undefined
528
+ * otherwise.
529
+ * @param predicate findLast calls predicate once for each element of the array, in descending
530
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
531
+ * immediately returns that element value. Otherwise, findLast returns undefined.
532
+ * @param thisArg If provided, it will be used as the this value for each invocation of
533
+ * predicate. If it is not provided, undefined is used instead.
534
+ */
535
+ findLast<S extends import('ts-type-forge').Uint16>(
536
+ predicate: (
537
+ value: import('ts-type-forge').Uint16,
538
+ index: NumberType.TypedArraySize,
539
+ array: Uint16Array,
540
+ ) => value is S,
541
+ thisArg?: unknown,
542
+ ): S | undefined;
543
+ findLast(
544
+ predicate: (
545
+ value: import('ts-type-forge').Uint16,
546
+ index: NumberType.TypedArraySize,
547
+ array: Uint16Array,
548
+ ) => boolean,
549
+ thisArg?: unknown,
550
+ ): import('ts-type-forge').Uint16 | undefined;
551
+
552
+ /**
553
+ * Returns the index of the last element in the array where predicate is true, and -1
554
+ * otherwise.
555
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
556
+ * order, until it finds one where predicate returns true. If such an element is found,
557
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
558
+ * @param thisArg If provided, it will be used as the this value for each invocation of
559
+ * predicate. If it is not provided, undefined is used instead.
560
+ */
561
+ findLastIndex(
562
+ predicate: (
563
+ value: import('ts-type-forge').Uint16,
564
+ index: NumberType.TypedArraySize,
565
+ array: Uint16Array,
566
+ ) => boolean,
567
+ thisArg?: unknown,
568
+ ): NumberType.TypedArraySearchResult;
569
+
570
+ /**
571
+ * Returns a copy of an array with its elements reversed.
572
+ */
573
+ toReversed(): Uint16Array;
574
+
575
+ /**
576
+ * Returns a copy of an array with its elements sorted.
577
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
578
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
579
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
580
+ * ```ts
581
+ * const myNums = Uint16Array.from([11, 2, 22, 1]);
582
+ * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
583
+ * ```
584
+ */
585
+ toSorted(
586
+ compareFn?: (
587
+ a: import('ts-type-forge').Uint16,
588
+ b: import('ts-type-forge').Uint16,
589
+ ) => number,
590
+ ): Uint16Array;
591
+
592
+ /**
593
+ * Copies an array, then overwrites the value at the provided index with the
594
+ * given value. If the index is negative, then it replaces from the end
595
+ * of the array.
596
+ * @param index The index of the value to overwrite. If the index is
597
+ * negative, then it replaces from the end of the array.
598
+ * @param value The value to write into the copied array.
599
+ * @returns The copied array with the updated value.
600
+ */
601
+ with(
602
+ index: NumberType.TypedArraySizeArg,
603
+ value: import('ts-type-forge').Uint16,
604
+ ): Uint16Array;
605
+ }
606
+
607
+ interface Int32Array {
608
+ /**
609
+ * Returns the value of the last element in the array where predicate is true, and undefined
610
+ * otherwise.
611
+ * @param predicate findLast calls predicate once for each element of the array, in descending
612
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
613
+ * immediately returns that element value. Otherwise, findLast returns undefined.
614
+ * @param thisArg If provided, it will be used as the this value for each invocation of
615
+ * predicate. If it is not provided, undefined is used instead.
616
+ */
617
+ findLast<S extends import('ts-type-forge').Int32>(
618
+ predicate: (
619
+ value: import('ts-type-forge').Int32,
620
+ index: NumberType.TypedArraySize,
621
+ array: Int32Array,
622
+ ) => value is S,
623
+ thisArg?: unknown,
624
+ ): S | undefined;
625
+ findLast(
626
+ predicate: (
627
+ value: import('ts-type-forge').Int32,
628
+ index: NumberType.TypedArraySize,
629
+ array: Int32Array,
630
+ ) => boolean,
631
+ thisArg?: unknown,
632
+ ): import('ts-type-forge').Int32 | undefined;
633
+
634
+ /**
635
+ * Returns the index of the last element in the array where predicate is true, and -1
636
+ * otherwise.
637
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
638
+ * order, until it finds one where predicate returns true. If such an element is found,
639
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
640
+ * @param thisArg If provided, it will be used as the this value for each invocation of
641
+ * predicate. If it is not provided, undefined is used instead.
642
+ */
643
+ findLastIndex(
644
+ predicate: (
645
+ value: import('ts-type-forge').Int32,
646
+ index: NumberType.TypedArraySize,
647
+ array: Int32Array,
648
+ ) => boolean,
649
+ thisArg?: unknown,
650
+ ): NumberType.TypedArraySearchResult;
651
+
652
+ /**
653
+ * Returns a copy of an array with its elements reversed.
654
+ */
655
+ toReversed(): Int32Array;
656
+
657
+ /**
658
+ * Returns a copy of an array with its elements sorted.
659
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
660
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
661
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
662
+ * ```ts
663
+ * const myNums = Int32Array.from([11, 2, -22, 1]);
664
+ * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
665
+ * ```
666
+ */
667
+ toSorted(
668
+ compareFn?: (
669
+ a: import('ts-type-forge').Int32,
670
+ b: import('ts-type-forge').Int32,
671
+ ) => number,
672
+ ): Int32Array;
673
+
674
+ /**
675
+ * Copies an array, then overwrites the value at the provided index with the
676
+ * given value. If the index is negative, then it replaces from the end
677
+ * of the array.
678
+ * @param index The index of the value to overwrite. If the index is
679
+ * negative, then it replaces from the end of the array.
680
+ * @param value The value to write into the copied array.
681
+ * @returns The copied array with the updated value.
682
+ */
683
+ with(
684
+ index: NumberType.TypedArraySizeArg,
685
+ value: import('ts-type-forge').Int32,
686
+ ): Int32Array;
687
+ }
688
+
689
+ interface Uint32Array {
690
+ /**
691
+ * Returns the value of the last element in the array where predicate is true, and undefined
692
+ * otherwise.
693
+ * @param predicate findLast calls predicate once for each element of the array, in descending
694
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
695
+ * immediately returns that element value. Otherwise, findLast returns undefined.
696
+ * @param thisArg If provided, it will be used as the this value for each invocation of
697
+ * predicate. If it is not provided, undefined is used instead.
698
+ */
699
+ findLast<S extends import('ts-type-forge').Uint32>(
700
+ predicate: (
701
+ value: import('ts-type-forge').Uint32,
702
+ index: NumberType.TypedArraySize,
703
+ array: Uint32Array,
704
+ ) => value is S,
705
+ thisArg?: unknown,
706
+ ): S | undefined;
707
+ findLast(
708
+ predicate: (
709
+ value: import('ts-type-forge').Uint32,
710
+ index: NumberType.TypedArraySize,
711
+ array: Uint32Array,
712
+ ) => boolean,
713
+ thisArg?: unknown,
714
+ ): import('ts-type-forge').Uint32 | undefined;
715
+
716
+ /**
717
+ * Returns the index of the last element in the array where predicate is true, and -1
718
+ * otherwise.
719
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
720
+ * order, until it finds one where predicate returns true. If such an element is found,
721
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
722
+ * @param thisArg If provided, it will be used as the this value for each invocation of
723
+ * predicate. If it is not provided, undefined is used instead.
724
+ */
725
+ findLastIndex(
726
+ predicate: (
727
+ value: import('ts-type-forge').Uint32,
728
+ index: NumberType.TypedArraySize,
729
+ array: Uint32Array,
730
+ ) => boolean,
731
+ thisArg?: unknown,
732
+ ): NumberType.TypedArraySearchResult;
733
+
734
+ /**
735
+ * Returns a copy of an array with its elements reversed.
736
+ */
737
+ toReversed(): Uint32Array;
738
+
739
+ /**
740
+ * Returns a copy of an array with its elements sorted.
741
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
742
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
743
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
744
+ * ```ts
745
+ * const myNums = Uint32Array.from([11, 2, 22, 1]);
746
+ * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
747
+ * ```
748
+ */
749
+ toSorted(
750
+ compareFn?: (
751
+ a: import('ts-type-forge').Uint32,
752
+ b: import('ts-type-forge').Uint32,
753
+ ) => number,
754
+ ): Uint32Array;
755
+
756
+ /**
757
+ * Copies an array, then overwrites the value at the provided index with the
758
+ * given value. If the index is negative, then it replaces from the end
759
+ * of the array.
760
+ * @param index The index of the value to overwrite. If the index is
761
+ * negative, then it replaces from the end of the array.
762
+ * @param value The value to write into the copied array.
763
+ * @returns The copied array with the updated value.
764
+ */
765
+ with(
766
+ index: NumberType.TypedArraySizeArg,
767
+ value: import('ts-type-forge').Uint32,
768
+ ): Uint32Array;
769
+ }
770
+
771
+ interface Float32Array {
772
+ /**
773
+ * Returns the value of the last element in the array where predicate is true, and undefined
774
+ * otherwise.
775
+ * @param predicate findLast calls predicate once for each element of the array, in descending
776
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
777
+ * immediately returns that element value. Otherwise, findLast returns undefined.
778
+ * @param thisArg If provided, it will be used as the this value for each invocation of
779
+ * predicate. If it is not provided, undefined is used instead.
780
+ */
781
+ findLast<S extends import('ts-type-forge').Float32>(
782
+ predicate: (
783
+ value: import('ts-type-forge').Float32,
784
+ index: NumberType.TypedArraySize,
785
+ array: Float32Array,
786
+ ) => value is S,
787
+ thisArg?: unknown,
788
+ ): S | undefined;
789
+ findLast(
790
+ predicate: (
791
+ value: import('ts-type-forge').Float32,
792
+ index: NumberType.TypedArraySize,
793
+ array: Float32Array,
794
+ ) => boolean,
795
+ thisArg?: unknown,
796
+ ): import('ts-type-forge').Float32 | undefined;
797
+
798
+ /**
799
+ * Returns the index of the last element in the array where predicate is true, and -1
800
+ * otherwise.
801
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
802
+ * order, until it finds one where predicate returns true. If such an element is found,
803
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
804
+ * @param thisArg If provided, it will be used as the this value for each invocation of
805
+ * predicate. If it is not provided, undefined is used instead.
806
+ */
807
+ findLastIndex(
808
+ predicate: (
809
+ value: import('ts-type-forge').Float32,
810
+ index: NumberType.TypedArraySize,
811
+ array: Float32Array,
812
+ ) => boolean,
813
+ thisArg?: unknown,
814
+ ): NumberType.TypedArraySearchResult;
815
+
816
+ /**
817
+ * Returns a copy of an array with its elements reversed.
818
+ */
819
+ toReversed(): Float32Array;
820
+
821
+ /**
822
+ * Returns a copy of an array with its elements sorted.
823
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
824
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
825
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
826
+ * ```ts
827
+ * const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
828
+ * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
829
+ * ```
830
+ */
831
+ toSorted(
832
+ compareFn?: (
833
+ a: import('ts-type-forge').Float32,
834
+ b: import('ts-type-forge').Float32,
835
+ ) => number,
836
+ ): Float32Array;
837
+
838
+ /**
839
+ * Copies an array, then overwrites the value at the provided index with the
840
+ * given value. If the index is negative, then it replaces from the end
841
+ * of the array.
842
+ * @param index The index of the value to overwrite. If the index is
843
+ * negative, then it replaces from the end of the array.
844
+ * @param value The value to write into the copied array.
845
+ * @returns The copied array with the updated value.
846
+ */
847
+ with(
848
+ index: NumberType.TypedArraySizeArg,
849
+ value: import('ts-type-forge').Float32,
850
+ ): Float32Array;
851
+ }
852
+
853
+ interface Float64Array {
854
+ /**
855
+ * Returns the value of the last element in the array where predicate is true, and undefined
856
+ * otherwise.
857
+ * @param predicate findLast calls predicate once for each element of the array, in descending
858
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
859
+ * immediately returns that element value. Otherwise, findLast returns undefined.
860
+ * @param thisArg If provided, it will be used as the this value for each invocation of
861
+ * predicate. If it is not provided, undefined is used instead.
862
+ */
863
+ findLast<S extends import('ts-type-forge').Float64>(
864
+ predicate: (
865
+ value: import('ts-type-forge').Float64,
866
+ index: NumberType.TypedArraySize,
867
+ array: Float64Array,
868
+ ) => value is S,
869
+ thisArg?: unknown,
870
+ ): S | undefined;
871
+ findLast(
872
+ predicate: (
873
+ value: import('ts-type-forge').Float64,
874
+ index: NumberType.TypedArraySize,
875
+ array: Float64Array,
876
+ ) => boolean,
877
+ thisArg?: unknown,
878
+ ): import('ts-type-forge').Float64 | undefined;
879
+
880
+ /**
881
+ * Returns the index of the last element in the array where predicate is true, and -1
882
+ * otherwise.
883
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
884
+ * order, until it finds one where predicate returns true. If such an element is found,
885
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
886
+ * @param thisArg If provided, it will be used as the this value for each invocation of
887
+ * predicate. If it is not provided, undefined is used instead.
888
+ */
889
+ findLastIndex(
890
+ predicate: (
891
+ value: import('ts-type-forge').Float64,
892
+ index: NumberType.TypedArraySize,
893
+ array: Float64Array,
894
+ ) => boolean,
895
+ thisArg?: unknown,
896
+ ): NumberType.TypedArraySearchResult;
897
+
898
+ /**
899
+ * Returns a copy of an array with its elements reversed.
900
+ */
901
+ toReversed(): Float64Array;
902
+
903
+ /**
904
+ * Returns a copy of an array with its elements sorted.
905
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
906
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
907
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
908
+ * ```ts
909
+ * const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
910
+ * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
911
+ * ```
912
+ */
913
+ toSorted(
914
+ compareFn?: (
915
+ a: import('ts-type-forge').Float64,
916
+ b: import('ts-type-forge').Float64,
917
+ ) => number,
918
+ ): Float64Array;
919
+
920
+ /**
921
+ * Copies an array, then overwrites the value at the provided index with the
922
+ * given value. If the index is negative, then it replaces from the end
923
+ * of the array.
924
+ * @param index The index of the value to overwrite. If the index is
925
+ * negative, then it replaces from the end of the array.
926
+ * @param value The value to write into the copied array.
927
+ * @returns The copied array with the updated value.
928
+ */
929
+ with(
930
+ index: NumberType.TypedArraySizeArg,
931
+ value: import('ts-type-forge').Float64,
932
+ ): Float64Array;
933
+ }
934
+
935
+ interface BigInt64Array {
936
+ /**
937
+ * Returns the value of the last element in the array where predicate is true, and undefined
938
+ * otherwise.
939
+ * @param predicate findLast calls predicate once for each element of the array, in descending
940
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
941
+ * immediately returns that element value. Otherwise, findLast returns undefined.
942
+ * @param thisArg If provided, it will be used as the this value for each invocation of
943
+ * predicate. If it is not provided, undefined is used instead.
944
+ */
945
+ findLast<S extends import('ts-type-forge').BigInt64>(
946
+ predicate: (
947
+ value: import('ts-type-forge').BigInt64,
948
+ index: NumberType.TypedArraySize,
949
+ array: BigInt64Array,
950
+ ) => value is S,
951
+ thisArg?: unknown,
952
+ ): S | undefined;
953
+ findLast(
954
+ predicate: (
955
+ value: import('ts-type-forge').BigInt64,
956
+ index: NumberType.TypedArraySize,
957
+ array: BigInt64Array,
958
+ ) => boolean,
959
+ thisArg?: unknown,
960
+ ): import('ts-type-forge').BigInt64 | undefined;
961
+
962
+ /**
963
+ * Returns the index of the last element in the array where predicate is true, and -1
964
+ * otherwise.
965
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
966
+ * order, until it finds one where predicate returns true. If such an element is found,
967
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
968
+ * @param thisArg If provided, it will be used as the this value for each invocation of
969
+ * predicate. If it is not provided, undefined is used instead.
970
+ */
971
+ findLastIndex(
972
+ predicate: (
973
+ value: import('ts-type-forge').BigInt64,
974
+ index: NumberType.TypedArraySize,
975
+ array: BigInt64Array,
976
+ ) => boolean,
977
+ thisArg?: unknown,
978
+ ): NumberType.TypedArraySearchResult;
979
+
980
+ /**
981
+ * Returns a copy of an array with its elements reversed.
982
+ */
983
+ toReversed(): BigInt64Array;
984
+
985
+ /**
986
+ * Returns a copy of an array with its elements sorted.
987
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
988
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
989
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
990
+ * ```ts
991
+ * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
992
+ * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
993
+ * ```
994
+ */
995
+ toSorted(
996
+ compareFn?: (
997
+ a: import('ts-type-forge').BigInt64,
998
+ b: import('ts-type-forge').BigInt64,
999
+ ) => number,
1000
+ ): BigInt64Array;
1001
+
1002
+ /**
1003
+ * Copies an array, then overwrites the value at the provided index with the
1004
+ * given value. If the index is negative, then it replaces from the end
1005
+ * of the array.
1006
+ * @param index The index of the value to overwrite. If the index is
1007
+ * negative, then it replaces from the end of the array.
1008
+ * @param value The value to write into the copied array.
1009
+ * @returns The copied array with the updated value.
1010
+ */
1011
+ with(
1012
+ index: NumberType.TypedArraySizeArg,
1013
+ value: import('ts-type-forge').BigInt64,
1014
+ ): BigInt64Array;
1015
+ }
1016
+
1017
+ interface BigUint64Array {
1018
+ /**
1019
+ * Returns the value of the last element in the array where predicate is true, and undefined
1020
+ * otherwise.
1021
+ * @param predicate findLast calls predicate once for each element of the array, in descending
1022
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
1023
+ * immediately returns that element value. Otherwise, findLast returns undefined.
1024
+ * @param thisArg If provided, it will be used as the this value for each invocation of
1025
+ * predicate. If it is not provided, undefined is used instead.
1026
+ */
1027
+ findLast<S extends import('ts-type-forge').BigUint64>(
1028
+ predicate: (
1029
+ value: import('ts-type-forge').BigUint64,
1030
+ index: NumberType.TypedArraySize,
1031
+ array: BigUint64Array,
1032
+ ) => value is S,
1033
+ thisArg?: unknown,
1034
+ ): S | undefined;
1035
+ findLast(
1036
+ predicate: (
1037
+ value: import('ts-type-forge').BigUint64,
1038
+ index: NumberType.TypedArraySize,
1039
+ array: BigUint64Array,
1040
+ ) => boolean,
1041
+ thisArg?: unknown,
1042
+ ): import('ts-type-forge').BigUint64 | undefined;
1043
+
1044
+ /**
1045
+ * Returns the index of the last element in the array where predicate is true, and -1
1046
+ * otherwise.
1047
+ * @param predicate findLastIndex calls predicate once for each element of the array, in descending
1048
+ * order, until it finds one where predicate returns true. If such an element is found,
1049
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
1050
+ * @param thisArg If provided, it will be used as the this value for each invocation of
1051
+ * predicate. If it is not provided, undefined is used instead.
1052
+ */
1053
+ findLastIndex(
1054
+ predicate: (
1055
+ value: import('ts-type-forge').BigUint64,
1056
+ index: NumberType.TypedArraySize,
1057
+ array: BigUint64Array,
1058
+ ) => boolean,
1059
+ thisArg?: unknown,
1060
+ ): NumberType.TypedArraySearchResult;
1061
+
1062
+ /**
1063
+ * Returns a copy of an array with its elements reversed.
1064
+ */
1065
+ toReversed(): BigUint64Array;
1066
+
1067
+ /**
1068
+ * Returns a copy of an array with its elements sorted.
1069
+ * @param compareFn Function used to determine the order of the elements. It is expected to return
1070
+ * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
1071
+ * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
1072
+ * ```ts
1073
+ * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
1074
+ * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
1075
+ * ```
1076
+ */
1077
+ toSorted(
1078
+ compareFn?: (
1079
+ a: import('ts-type-forge').BigUint64,
1080
+ b: import('ts-type-forge').BigUint64,
1081
+ ) => number,
1082
+ ): BigUint64Array;
1083
+
1084
+ /**
1085
+ * Copies an array, then overwrites the value at the provided index with the
1086
+ * given value. If the index is negative, then it replaces from the end
1087
+ * of the array.
1088
+ * @param index The index of the value to overwrite. If the index is
1089
+ * negative, then it replaces from the end of the array.
1090
+ * @param value The value to write into the copied array.
1091
+ * @returns The copied array with the updated value.
1092
+ */
1093
+ with(
1094
+ index: NumberType.TypedArraySizeArg,
1095
+ value: import('ts-type-forge').BigUint64,
1096
+ ): BigUint64Array;
1097
+ }