strict-ts-lib-v5.6-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 (92) 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/asynciterable/index.d.ts +41 -0
  5. package/libs/dom/index.d.ts +35022 -0
  6. package/libs/dom/iterable/index.d.ts +795 -0
  7. package/libs/es2015/collection/index.d.ts +148 -0
  8. package/libs/es2015/core/index.d.ts +712 -0
  9. package/libs/es2015/generator/index.d.ts +65 -0
  10. package/libs/es2015/index.d.ts +12 -0
  11. package/libs/es2015/iterable/index.d.ts +625 -0
  12. package/libs/es2015/promise/index.d.ts +74 -0
  13. package/libs/es2015/proxy/index.d.ts +131 -0
  14. package/libs/es2015/reflect/index.d.ts +145 -0
  15. package/libs/es2015/symbol/index.d.ts +30 -0
  16. package/libs/es2015/symbol-wellknown/index.d.ts +336 -0
  17. package/libs/es2016/array-include/index.d.ts +133 -0
  18. package/libs/es2016/full/index.d.ts +7 -0
  19. package/libs/es2016/index.d.ts +5 -0
  20. package/libs/es2016/intl/index.d.ts +17 -0
  21. package/libs/es2017/date/index.d.ts +23 -0
  22. package/libs/es2017/full/index.d.ts +7 -0
  23. package/libs/es2017/index.d.ts +9 -0
  24. package/libs/es2017/intl/index.d.ts +28 -0
  25. package/libs/es2017/object/index.d.ts +115 -0
  26. package/libs/es2017/sharedmemory/index.d.ts +392 -0
  27. package/libs/es2017/string/index.d.ts +35 -0
  28. package/libs/es2017/typedarrays/index.d.ts +37 -0
  29. package/libs/es2018/asyncgenerator/index.d.ts +69 -0
  30. package/libs/es2018/asynciterable/index.d.ts +49 -0
  31. package/libs/es2018/full/index.d.ts +8 -0
  32. package/libs/es2018/index.d.ts +8 -0
  33. package/libs/es2018/intl/index.d.ts +92 -0
  34. package/libs/es2018/promise/index.d.ts +14 -0
  35. package/libs/es2018/regexp/index.d.ts +21 -0
  36. package/libs/es2019/array/index.d.ts +100 -0
  37. package/libs/es2019/full/index.d.ts +8 -0
  38. package/libs/es2019/index.d.ts +8 -0
  39. package/libs/es2019/intl/index.d.ts +7 -0
  40. package/libs/es2019/object/index.d.ts +141 -0
  41. package/libs/es2019/string/index.d.ts +21 -0
  42. package/libs/es2019/symbol/index.d.ts +8 -0
  43. package/libs/es2020/bigint/index.d.ts +980 -0
  44. package/libs/es2020/date/index.d.ts +35 -0
  45. package/libs/es2020/full/index.d.ts +8 -0
  46. package/libs/es2020/index.d.ts +11 -0
  47. package/libs/es2020/intl/index.d.ts +494 -0
  48. package/libs/es2020/number/index.d.ts +15 -0
  49. package/libs/es2020/promise/index.d.ts +37 -0
  50. package/libs/es2020/sharedmemory/index.d.ts +171 -0
  51. package/libs/es2020/string/index.d.ts +30 -0
  52. package/libs/es2020/symbol-wellknown/index.d.ts +29 -0
  53. package/libs/es2021/full/index.d.ts +8 -0
  54. package/libs/es2021/index.d.ts +7 -0
  55. package/libs/es2021/intl/index.d.ts +162 -0
  56. package/libs/es2021/promise/index.d.ts +34 -0
  57. package/libs/es2021/string/index.d.ts +20 -0
  58. package/libs/es2021/weakref/index.d.ts +60 -0
  59. package/libs/es2022/array/index.d.ts +127 -0
  60. package/libs/es2022/error/index.d.ts +57 -0
  61. package/libs/es2022/full/index.d.ts +8 -0
  62. package/libs/es2022/index.d.ts +10 -0
  63. package/libs/es2022/intl/index.d.ts +120 -0
  64. package/libs/es2022/object/index.d.ts +41 -0
  65. package/libs/es2022/regexp/index.d.ts +28 -0
  66. package/libs/es2022/sharedmemory/index.d.ts +37 -0
  67. package/libs/es2022/string/index.d.ts +9 -0
  68. package/libs/es2023/array/index.d.ts +1097 -0
  69. package/libs/es2023/collection/index.d.ts +5 -0
  70. package/libs/es2023/full/index.d.ts +8 -0
  71. package/libs/es2023/index.d.ts +6 -0
  72. package/libs/es2023/intl/index.d.ts +106 -0
  73. package/libs/es5/index.d.ts +6453 -0
  74. package/libs/es6/index.d.ts +7 -0
  75. package/libs/esnext/array/index.d.ts +28 -0
  76. package/libs/esnext/collection/index.d.ts +90 -0
  77. package/libs/esnext/decorators/index.d.ts +12 -0
  78. package/libs/esnext/disposable/index.d.ts +175 -0
  79. package/libs/esnext/full/index.d.ts +8 -0
  80. package/libs/esnext/index.d.ts +13 -0
  81. package/libs/esnext/intl/index.d.ts +5 -0
  82. package/libs/esnext/iterator/index.d.ts +182 -0
  83. package/libs/esnext/object/index.d.ts +13 -0
  84. package/libs/esnext/promise/index.d.ts +19 -0
  85. package/libs/esnext/regexp/index.d.ts +9 -0
  86. package/libs/esnext/string/index.d.ts +13 -0
  87. package/libs/scripthost/index.d.ts +310 -0
  88. package/libs/webworker/asynciterable/index.d.ts +41 -0
  89. package/libs/webworker/importscripts/index.d.ts +7 -0
  90. package/libs/webworker/index.d.ts +11758 -0
  91. package/libs/webworker/iterable/index.d.ts +578 -0
  92. package/package.json +23 -0
@@ -0,0 +1,712 @@
1
+ /// <reference no-default-lib="true"/>
2
+
3
+ interface Array<T> {
4
+ /**
5
+ * Returns the value of the first element in the array where predicate is true, and undefined
6
+ * otherwise.
7
+ * @param predicate find calls predicate once for each element of the array, in ascending
8
+ * order, until it finds one where predicate returns true. If such an element is found, find
9
+ * immediately returns that element value. Otherwise, find 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
+ find<S extends T>(
14
+ predicate: (
15
+ value: T,
16
+ index: NumberType.ArraySize,
17
+ obj: readonly T[],
18
+ ) => value is S,
19
+ thisArg?: unknown,
20
+ ): S | undefined;
21
+ find(
22
+ predicate: (
23
+ value: T,
24
+ index: NumberType.ArraySize,
25
+ obj: readonly T[],
26
+ ) => boolean,
27
+ thisArg?: unknown,
28
+ ): T | undefined;
29
+
30
+ /**
31
+ * Returns the index of the first element in the array where predicate is true, and -1
32
+ * otherwise.
33
+ * @param predicate find calls predicate once for each element of the array, in ascending
34
+ * order, until it finds one where predicate returns true. If such an element is found,
35
+ * findIndex immediately returns that element index. Otherwise, findIndex 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
+ findIndex(
40
+ predicate: (
41
+ value: T,
42
+ index: NumberType.ArraySize,
43
+ obj: readonly T[],
44
+ ) => boolean,
45
+ thisArg?: unknown,
46
+ ): NumberType.ArraySearchResult;
47
+
48
+ /**
49
+ * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
50
+ * @param value value to fill array section with
51
+ * @param start index to start filling the array at. If start is negative, it is treated as
52
+ * length+start where length is the length of the array.
53
+ * @param end index to stop filling the array at. If end is negative, it is treated as
54
+ * length+end.
55
+ */
56
+ fill(
57
+ value: T,
58
+ start?: NumberType.ArraySizeArg,
59
+ end?: NumberType.ArraySizeArg,
60
+ ): this;
61
+
62
+ /**
63
+ * Returns the this object after copying a section of the array identified by start and end
64
+ * to the same array starting at position target
65
+ * @param target If target is negative, it is treated as length+target where length is the
66
+ * length of the array.
67
+ * @param start If start is negative, it is treated as length+start. If end is negative, it
68
+ * is treated as length+end.
69
+ * @param end If not specified, length of the this object is used as its default value.
70
+ */
71
+ copyWithin(
72
+ target: NumberType.ArraySizeArg,
73
+ start: NumberType.ArraySizeArg,
74
+ end?: NumberType.ArraySizeArg,
75
+ ): this;
76
+
77
+ toLocaleString(
78
+ locales: string | readonly string[],
79
+ options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions,
80
+ ): string;
81
+ }
82
+
83
+ interface ArrayConstructor {
84
+ /**
85
+ * Creates an array from an array-like object.
86
+ * @param arrayLike An array-like object to convert to an array.
87
+ */
88
+ from<T>(arrayLike: ArrayLike<T>): readonly T[];
89
+
90
+ /**
91
+ * Creates an array from an iterable object.
92
+ * @param arrayLike An array-like object to convert to an array.
93
+ * @param mapfn A mapping function to call on every element of the array.
94
+ * @param thisArg Value of 'this' used to invoke the mapfn.
95
+ */
96
+ from<T, U>(
97
+ arrayLike: ArrayLike<T>,
98
+ mapfn: (v: T, k: NumberType.ArraySize) => U,
99
+ thisArg?: unknown,
100
+ ): readonly U[];
101
+
102
+ /**
103
+ * Returns a new array from a set of elements.
104
+ * @param items A set of elements to include in the new array object.
105
+ */
106
+ of<T>(...items: readonly T[]): readonly T[];
107
+ }
108
+
109
+ interface DateConstructor {
110
+ new (value: number | string | Date): Date;
111
+ }
112
+
113
+ interface Function {
114
+ /**
115
+ * Returns the name of the function. Function names are read-only and can not be changed.
116
+ */
117
+ readonly name: string;
118
+ }
119
+
120
+ interface Math {
121
+ /**
122
+ * Returns the number of leading zero bits in the 32-bit binary representation of a number.
123
+ * @param x A numeric expression.
124
+ */
125
+ clz32(x: number): import('ts-type-forge').UintRange<0, 33>;
126
+
127
+ /**
128
+ * Returns the result of 32-bit multiplication of two numbers.
129
+ * @param x First number
130
+ * @param y Second number
131
+ */
132
+ imul(
133
+ x: import('ts-type-forge').Int32,
134
+ y: import('ts-type-forge').Int32,
135
+ ): import('ts-type-forge').Int32;
136
+
137
+ /**
138
+ * Returns the sign of the x, indicating whether x is positive, negative or zero.
139
+ * @param x The numeric expression to test
140
+ */
141
+ sign(x: number): -1 | 0 | -0 | 1 | import('ts-type-forge').NaNType;
142
+
143
+ /**
144
+ * Returns the base 10 logarithm of a number.
145
+ * @param x A numeric expression.
146
+ */
147
+ log10(x: number): number;
148
+
149
+ /**
150
+ * Returns the base 2 logarithm of a number.
151
+ * @param x A numeric expression.
152
+ */
153
+ log2(x: number): number;
154
+
155
+ /**
156
+ * Returns the natural logarithm of 1 + x.
157
+ * @param x A numeric expression.
158
+ */
159
+ log1p(x: number): number;
160
+
161
+ /**
162
+ * Returns the result of (e^x - 1), which is an implementation-dependent approximation to
163
+ * subtracting 1 from the exponential function of x (e raised to the power of x, where e
164
+ * is the base of the natural logarithms).
165
+ * @param x A numeric expression.
166
+ */
167
+ expm1(x: number): number;
168
+
169
+ /**
170
+ * Returns the hyperbolic cosine of a number.
171
+ * @param x A numeric expression that contains an angle measured in radians.
172
+ */
173
+ cosh(
174
+ x: number,
175
+ ): import('ts-type-forge').PositiveNumber | import('ts-type-forge').NaNType;
176
+
177
+ /**
178
+ * Returns the hyperbolic sine of a number.
179
+ * @param x A numeric expression that contains an angle measured in radians.
180
+ */
181
+ sinh(x: number): number;
182
+
183
+ /**
184
+ * Returns the hyperbolic tangent of a number.
185
+ * @param x A numeric expression that contains an angle measured in radians.
186
+ */
187
+ tanh(x: number): number;
188
+
189
+ /**
190
+ * Returns the inverse hyperbolic cosine of a number.
191
+ * @param x A numeric expression that contains an angle measured in radians.
192
+ */
193
+ acosh(
194
+ x: number,
195
+ ):
196
+ | import('ts-type-forge').NonNegativeNumber
197
+ | import('ts-type-forge').NaNType;
198
+
199
+ /**
200
+ * Returns the inverse hyperbolic sine of a number.
201
+ * @param x A numeric expression that contains an angle measured in radians.
202
+ */
203
+ asinh(x: number): number;
204
+
205
+ /**
206
+ * Returns the inverse hyperbolic tangent of a number.
207
+ * @param x A numeric expression that contains an angle measured in radians.
208
+ */
209
+ atanh(x: number): number;
210
+
211
+ /**
212
+ * Returns the square root of the sum of squares of its arguments.
213
+ * @param values Values to compute the square root for.
214
+ * If no arguments are passed, the result is +0.
215
+ * If there is only one argument, the result is the absolute value.
216
+ * If any argument is +Infinity or -Infinity, the result is +Infinity.
217
+ * If any argument is NaN, the result is NaN.
218
+ * If all arguments are either +0 or −0, the result is +0.
219
+ */
220
+ hypot(
221
+ ...values: readonly number[]
222
+ ):
223
+ | import('ts-type-forge').NonNegativeNumber
224
+ | import('ts-type-forge').NaNType;
225
+
226
+ /**
227
+ * Returns the integral part of the a numeric expression, x, removing any fractional digits.
228
+ * If x is already an integer, the result is x.
229
+ * @param x A numeric expression.
230
+ */
231
+ trunc(
232
+ x: number,
233
+ ):
234
+ | import('ts-type-forge').Int
235
+ | import('ts-type-forge').InfiniteNumber
236
+ | import('ts-type-forge').NaNType;
237
+
238
+ /**
239
+ * Returns the nearest single precision float representation of a number.
240
+ * @param x A numeric expression.
241
+ */
242
+ fround(
243
+ x: number,
244
+ ): import('ts-type-forge').Float32 | import('ts-type-forge').NaNType;
245
+
246
+ /**
247
+ * Returns an implementation-dependent approximation to the cube root of number.
248
+ * @param x A numeric expression.
249
+ */
250
+ cbrt(x: number): number;
251
+ }
252
+
253
+ interface NumberConstructor {
254
+ /**
255
+ * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
256
+ * that is representable as a Number value, which is approximately:
257
+ * 2.2204460492503130808472633361816 x 10‍−‍16.
258
+ */
259
+ readonly EPSILON: import('ts-type-forge').PositiveNumber;
260
+
261
+ /**
262
+ * Returns true if passed value is finite.
263
+ * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
264
+ * number. Only finite values of the type number, result in true.
265
+ * @param number A numeric value.
266
+ */
267
+ isFinite(number: number): number is import('ts-type-forge').FiniteNumber;
268
+
269
+ /**
270
+ * Returns true if the value passed is an integer, false otherwise.
271
+ * @param number A numeric value.
272
+ */
273
+ isInteger(number: number): number is import('ts-type-forge').Int;
274
+
275
+ /**
276
+ * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
277
+ * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
278
+ * to a number. Only values of the type number, that are also NaN, result in true.
279
+ * @param number A numeric value.
280
+ */
281
+ isNaN(number: number): number is import('ts-type-forge').NaNType;
282
+
283
+ /**
284
+ * Returns true if the value passed is a safe integer.
285
+ * @param number A numeric value.
286
+ */
287
+ isSafeInteger(number: number): number is import('ts-type-forge').SafeInt;
288
+
289
+ /**
290
+ * The value of the largest integer n such that n and n + 1 are both exactly representable as
291
+ * a Number value.
292
+ * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
293
+ */
294
+ readonly MAX_SAFE_INTEGER: import('ts-type-forge').SafeUint;
295
+
296
+ /**
297
+ * The value of the smallest integer n such that n and n − 1 are both exactly representable as
298
+ * a Number value.
299
+ * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
300
+ */
301
+ readonly MIN_SAFE_INTEGER: import('ts-type-forge').SafeInt;
302
+
303
+ /**
304
+ * Converts a string to a floating-point number.
305
+ * @param string A string that contains a floating-point number.
306
+ */
307
+ parseFloat(string: string): number | import('ts-type-forge').NaNType;
308
+
309
+ /**
310
+ * Converts A string to an integer.
311
+ * @param string A string to convert into a number.
312
+ * @param radix A value between 2 and 36 that specifies the base of the number in `string`.
313
+ * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
314
+ * All other strings are considered decimal.
315
+ */
316
+ parseInt(
317
+ string: string,
318
+ radix?: import('ts-type-forge').UintRange<2, 37>,
319
+ ): import('ts-type-forge').Int | import('ts-type-forge').NaNType;
320
+ }
321
+
322
+ interface ObjectConstructor {
323
+ /**
324
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
325
+ * target object. Returns the target object.
326
+ * @param target The target object to copy to.
327
+ * @param source The source object from which to copy properties.
328
+ */
329
+ assign<T extends {}, U>(target: T, source: U): T & U;
330
+
331
+ /**
332
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
333
+ * target object. Returns the target object.
334
+ * @param target The target object to copy to.
335
+ * @param source1 The first source object from which to copy properties.
336
+ * @param source2 The second source object from which to copy properties.
337
+ */
338
+ assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
339
+
340
+ /**
341
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
342
+ * target object. Returns the target object.
343
+ * @param target The target object to copy to.
344
+ * @param source1 The first source object from which to copy properties.
345
+ * @param source2 The second source object from which to copy properties.
346
+ * @param source3 The third source object from which to copy properties.
347
+ */
348
+ assign<T extends {}, U, V, W>(
349
+ target: T,
350
+ source1: U,
351
+ source2: V,
352
+ source3: W,
353
+ ): T & U & V & W;
354
+
355
+ /**
356
+ * Copy the values of all of the enumerable own properties from one or more source objects to a
357
+ * target object. Returns the target object.
358
+ * @param target The target object to copy to.
359
+ * @param sources One or more source objects from which to copy properties
360
+ */
361
+ assign(target: object, ...sources: readonly unknown[]): unknown;
362
+
363
+ /**
364
+ * Returns an array of all symbol properties found directly on object o.
365
+ * @param o Object to retrieve the symbols from.
366
+ */
367
+ getOwnPropertySymbols(o: unknown): readonly symbol[];
368
+
369
+ /**
370
+ * Returns the names of the enumerable string properties and methods of an object.
371
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
372
+ */
373
+ // keys(o: {}): readonly string[];
374
+
375
+ /**
376
+ * Returns true if the values are the same value, false otherwise.
377
+ * @param value1 The first value.
378
+ * @param value2 The second value.
379
+ */
380
+ is(value1: unknown, value2: unknown): boolean;
381
+
382
+ /**
383
+ * Sets the prototype of a specified object o to object proto or null. Returns the object o.
384
+ * @param o The object to change its prototype.
385
+ * @param proto The value of the new prototype or null.
386
+ */
387
+ setPrototypeOf(o: unknown, proto: object | null): unknown;
388
+ }
389
+
390
+ interface ReadonlyArray<T> {
391
+ /**
392
+ * Returns the value of the first element in the array where predicate is true, and undefined
393
+ * otherwise.
394
+ * @param predicate find calls predicate once for each element of the array, in ascending
395
+ * order, until it finds one where predicate returns true. If such an element is found, find
396
+ * immediately returns that element value. Otherwise, find returns undefined.
397
+ * @param thisArg If provided, it will be used as the this value for each invocation of
398
+ * predicate. If it is not provided, undefined is used instead.
399
+ */
400
+ find<S extends T>(
401
+ predicate: (
402
+ value: T,
403
+ index: NumberType.ArraySize,
404
+ obj: readonly T[],
405
+ ) => value is S,
406
+ thisArg?: unknown,
407
+ ): S | undefined;
408
+ find(
409
+ predicate: (
410
+ value: T,
411
+ index: NumberType.ArraySize,
412
+ obj: readonly T[],
413
+ ) => boolean,
414
+ thisArg?: unknown,
415
+ ): T | undefined;
416
+
417
+ /**
418
+ * Returns the index of the first element in the array where predicate is true, and -1
419
+ * otherwise.
420
+ * @param predicate find calls predicate once for each element of the array, in ascending
421
+ * order, until it finds one where predicate returns true. If such an element is found,
422
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
423
+ * @param thisArg If provided, it will be used as the this value for each invocation of
424
+ * predicate. If it is not provided, undefined is used instead.
425
+ */
426
+ findIndex(
427
+ predicate: (
428
+ value: T,
429
+ index: NumberType.ArraySize,
430
+ obj: readonly T[],
431
+ ) => boolean,
432
+ thisArg?: unknown,
433
+ ): NumberType.ArraySearchResult;
434
+
435
+ toLocaleString(
436
+ locales: string | readonly string[],
437
+ options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions,
438
+ ): string;
439
+ }
440
+
441
+ interface RegExp {
442
+ /**
443
+ * Returns a string indicating the flags of the regular expression in question. This field is read-only.
444
+ * The characters in this string are sequenced and concatenated in the following order:
445
+ *
446
+ * - "g" for global
447
+ * - "i" for ignoreCase
448
+ * - "m" for multiline
449
+ * - "u" for unicode
450
+ * - "y" for sticky
451
+ *
452
+ * If no flags are set, the value is the empty string.
453
+ */
454
+ readonly flags: string;
455
+
456
+ /**
457
+ * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
458
+ * expression. Default is false. Read-only.
459
+ */
460
+ readonly sticky: boolean;
461
+
462
+ /**
463
+ * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
464
+ * expression. Default is false. Read-only.
465
+ */
466
+ readonly unicode: boolean;
467
+ }
468
+
469
+ interface RegExpConstructor {
470
+ new (pattern: RegExp | string, flags?: string): RegExp;
471
+ (pattern: RegExp | string, flags?: string): RegExp;
472
+ }
473
+
474
+ interface String {
475
+ /**
476
+ * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
477
+ * value of the UTF-16 encoded code point starting at the string element at position pos in
478
+ * the String resulting from converting this object to a String.
479
+ * If there is no element at that position, the result is undefined.
480
+ * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
481
+ */
482
+ codePointAt(
483
+ pos: NumberType.StringSizeArgNonNegative,
484
+ ): import('ts-type-forge').Uint32 | undefined;
485
+
486
+ /**
487
+ * Returns true if searchString appears as a substring of the result of converting this
488
+ * object to a String, at one or more positions that are
489
+ * greater than or equal to position; otherwise, returns false.
490
+ * @param searchString search string
491
+ * @param position If position is undefined, 0 is assumed, so as to search all of the String.
492
+ */
493
+ includes(
494
+ searchString: string,
495
+ position?: NumberType.StringSizeArgNonNegative,
496
+ ): boolean;
497
+
498
+ /**
499
+ * Returns true if the sequence of elements of searchString converted to a String is the
500
+ * same as the corresponding elements of this object (converted to a String) starting at
501
+ * endPosition – length(this). Otherwise returns false.
502
+ */
503
+ endsWith(
504
+ searchString: string,
505
+ endPosition?: NumberType.StringSizeArgNonNegative,
506
+ ): boolean;
507
+
508
+ /**
509
+ * Returns the String value result of normalizing the string into the normalization form
510
+ * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
511
+ * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
512
+ * is "NFC"
513
+ */
514
+ normalize(form: 'NFC' | 'NFD' | 'NFKC' | 'NFKD'): string;
515
+
516
+ /**
517
+ * Returns the String value result of normalizing the string into the normalization form
518
+ * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
519
+ * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
520
+ * is "NFC"
521
+ */
522
+ normalize(form?: string): string;
523
+
524
+ /**
525
+ * Returns a String value that is made from count copies appended together. If count is 0,
526
+ * the empty string is returned.
527
+ * @param count number of copies to append
528
+ */
529
+ repeat(count: import('ts-type-forge').SafeUint): string;
530
+
531
+ /**
532
+ * Returns true if the sequence of elements of searchString converted to a String is the
533
+ * same as the corresponding elements of this object (converted to a String) starting at
534
+ * position. Otherwise returns false.
535
+ */
536
+ startsWith(
537
+ searchString: string,
538
+ position?: NumberType.StringSizeArgNonNegative,
539
+ ): boolean;
540
+
541
+ /**
542
+ * Returns an `<a>` HTML anchor element and sets the name attribute to the text value
543
+ * @deprecated A legacy feature for browser compatibility
544
+ * @param name
545
+ */
546
+ anchor(name: string): string;
547
+
548
+ /**
549
+ * Returns a `<big>` HTML element
550
+ * @deprecated A legacy feature for browser compatibility
551
+ */
552
+ big(): string;
553
+
554
+ /**
555
+ * Returns a `<blink>` HTML element
556
+ * @deprecated A legacy feature for browser compatibility
557
+ */
558
+ blink(): string;
559
+
560
+ /**
561
+ * Returns a `<b>` HTML element
562
+ * @deprecated A legacy feature for browser compatibility
563
+ */
564
+ bold(): string;
565
+
566
+ /**
567
+ * Returns a `<tt>` HTML element
568
+ * @deprecated A legacy feature for browser compatibility
569
+ */
570
+ fixed(): string;
571
+
572
+ /**
573
+ * Returns a `<font>` HTML element and sets the color attribute value
574
+ * @deprecated A legacy feature for browser compatibility
575
+ */
576
+ fontcolor(color: string): string;
577
+
578
+ /**
579
+ * Returns a `<font>` HTML element and sets the size attribute value
580
+ * @deprecated A legacy feature for browser compatibility
581
+ */
582
+ fontsize(size: number): string;
583
+
584
+ /**
585
+ * Returns a `<font>` HTML element and sets the size attribute value
586
+ * @deprecated A legacy feature for browser compatibility
587
+ */
588
+ fontsize(size: string): string;
589
+
590
+ /**
591
+ * Returns an `<i>` HTML element
592
+ * @deprecated A legacy feature for browser compatibility
593
+ */
594
+ italics(): string;
595
+
596
+ /**
597
+ * Returns an `<a>` HTML element and sets the href attribute value
598
+ * @deprecated A legacy feature for browser compatibility
599
+ */
600
+ link(url: string): string;
601
+
602
+ /**
603
+ * Returns a `<small>` HTML element
604
+ * @deprecated A legacy feature for browser compatibility
605
+ */
606
+ small(): string;
607
+
608
+ /**
609
+ * Returns a `<strike>` HTML element
610
+ * @deprecated A legacy feature for browser compatibility
611
+ */
612
+ strike(): string;
613
+
614
+ /**
615
+ * Returns a `<sub>` HTML element
616
+ * @deprecated A legacy feature for browser compatibility
617
+ */
618
+ sub(): string;
619
+
620
+ /**
621
+ * Returns a `<sup>` HTML element
622
+ * @deprecated A legacy feature for browser compatibility
623
+ */
624
+ sup(): string;
625
+ }
626
+
627
+ interface StringConstructor {
628
+ /**
629
+ * Return the String value whose elements are, in order, the elements in the List elements.
630
+ * If length is 0, the empty string is returned.
631
+ */
632
+ fromCodePoint(
633
+ ...codePoints: readonly import('ts-type-forge').Uint32[]
634
+ ): string;
635
+
636
+ /**
637
+ * String.raw is usually used as a tag function of a Tagged Template String. When called as
638
+ * such, the first argument will be a well formed template call site object and the rest
639
+ * parameter will contain the substitution values. It can also be called directly, for example,
640
+ * to interleave strings and values from your own tag function, and in this case the only thing
641
+ * it needs from the first argument is the raw property.
642
+ * @param template A well-formed template string call site representation.
643
+ * @param substitutions A set of substitution values.
644
+ */
645
+ raw(
646
+ template: { readonly raw: readonly string[] | ArrayLike<string> },
647
+ ...substitutions: readonly unknown[]
648
+ ): string;
649
+ }
650
+
651
+ interface Int8Array {
652
+ toLocaleString(
653
+ locales: string | readonly string[],
654
+ options?: Intl.NumberFormatOptions,
655
+ ): string;
656
+ }
657
+
658
+ interface Uint8Array {
659
+ toLocaleString(
660
+ locales: string | readonly string[],
661
+ options?: Intl.NumberFormatOptions,
662
+ ): string;
663
+ }
664
+
665
+ interface Uint8ClampedArray {
666
+ toLocaleString(
667
+ locales: string | readonly string[],
668
+ options?: Intl.NumberFormatOptions,
669
+ ): string;
670
+ }
671
+
672
+ interface Int16Array {
673
+ toLocaleString(
674
+ locales: string | readonly string[],
675
+ options?: Intl.NumberFormatOptions,
676
+ ): string;
677
+ }
678
+
679
+ interface Uint16Array {
680
+ toLocaleString(
681
+ locales: string | readonly string[],
682
+ options?: Intl.NumberFormatOptions,
683
+ ): string;
684
+ }
685
+
686
+ interface Int32Array {
687
+ toLocaleString(
688
+ locales: string | readonly string[],
689
+ options?: Intl.NumberFormatOptions,
690
+ ): string;
691
+ }
692
+
693
+ interface Uint32Array {
694
+ toLocaleString(
695
+ locales: string | readonly string[],
696
+ options?: Intl.NumberFormatOptions,
697
+ ): string;
698
+ }
699
+
700
+ interface Float32Array {
701
+ toLocaleString(
702
+ locales: string | readonly string[],
703
+ options?: Intl.NumberFormatOptions,
704
+ ): string;
705
+ }
706
+
707
+ interface Float64Array {
708
+ toLocaleString(
709
+ locales: string | readonly string[],
710
+ options?: Intl.NumberFormatOptions,
711
+ ): string;
712
+ }