• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type UncurryThis<T extends (this: unknown, ...args: unknown[]) => unknown> =
2  (self: ThisParameterType<T>, ...args: Parameters<T>) => ReturnType<T>;
3type UncurryThisStaticApply<T extends (this: unknown, ...args: unknown[]) => unknown> =
4  (self: ThisParameterType<T>, args: Parameters<T>) => ReturnType<T>;
5type StaticApply<T extends (this: unknown, ...args: unknown[]) => unknown> =
6  (args: Parameters<T>) => ReturnType<T>;
7
8type UncurryMethod<O, K extends keyof O, T = O> =
9  O[K] extends (this: infer U, ...args: infer A) => infer R
10    ? (self: unknown extends U ? T : U, ...args: A) => R
11    : never;
12type UncurryMethodApply<O, K extends keyof O, T = O> =
13  O[K] extends (this: infer U, ...args: infer A) => infer R
14    ? (self: unknown extends U ? T : U, args: A) => R
15    : never;
16
17type UncurryGetter<O, K extends keyof O, T = O> =
18  O[K] extends infer V ? (self: T) => V : never;
19type UncurrySetter<O, K extends keyof O, T = O> =
20  O[K] extends infer V ? (self: T, value: V) => void : never;
21
22type TypedArrayContentType<T extends TypedArray> = T extends { [k: number]: infer V } ? V : never;
23
24/**
25 * Primordials are a way to safely use globals without fear of global mutation
26 * Generally, this means removing `this` parameter usage and instead using
27 * a regular parameter:
28 *
29 * @example
30 *
31 * ```js
32 * 'thing'.startsWith('hello');
33 * ```
34 *
35 * becomes
36 *
37 * ```js
38 * primordials.StringPrototypeStartsWith('thing', 'hello')
39 * ```
40 */
41declare namespace primordials {
42  export function uncurryThis<T extends (...args: unknown[]) => unknown>(fn: T): UncurryThis<T>;
43  export function makeSafe<T extends NewableFunction>(unsafe: NewableFunction, safe: T): T;
44
45  export import decodeURI = globalThis.decodeURI;
46  export import decodeURIComponent = globalThis.decodeURIComponent;
47  export import encodeURI = globalThis.encodeURI;
48  export import encodeURIComponent = globalThis.encodeURIComponent;
49  export const JSONParse: typeof JSON.parse
50  export const JSONStringify: typeof JSON.stringify
51  export const MathAbs: typeof Math.abs
52  export const MathAcos: typeof Math.acos
53  export const MathAcosh: typeof Math.acosh
54  export const MathAsin: typeof Math.asin
55  export const MathAsinh: typeof Math.asinh
56  export const MathAtan: typeof Math.atan
57  export const MathAtanh: typeof Math.atanh
58  export const MathAtan2: typeof Math.atan2
59  export const MathCeil: typeof Math.ceil
60  export const MathCbrt: typeof Math.cbrt
61  export const MathExpm1: typeof Math.expm1
62  export const MathClz32: typeof Math.clz32
63  export const MathCos: typeof Math.cos
64  export const MathCosh: typeof Math.cosh
65  export const MathExp: typeof Math.exp
66  export const MathFloor: typeof Math.floor
67  export const MathFround: typeof Math.fround
68  export const MathHypot: typeof Math.hypot
69  export const MathImul: typeof Math.imul
70  export const MathLog: typeof Math.log
71  export const MathLog1p: typeof Math.log1p
72  export const MathLog2: typeof Math.log2
73  export const MathLog10: typeof Math.log10
74  export const MathMax: typeof Math.max
75  export const MathMaxApply: StaticApply<typeof Math.max>
76  export const MathMin: typeof Math.min
77  export const MathPow: typeof Math.pow
78  export const MathRandom: typeof Math.random
79  export const MathRound: typeof Math.round
80  export const MathSign: typeof Math.sign
81  export const MathSin: typeof Math.sin
82  export const MathSinh: typeof Math.sinh
83  export const MathSqrt: typeof Math.sqrt
84  export const MathTan: typeof Math.tan
85  export const MathTanh: typeof Math.tanh
86  export const MathTrunc: typeof Math.trunc
87  export const MathE: typeof Math.E
88  export const MathLN10: typeof Math.LN10
89  export const MathLN2: typeof Math.LN2
90  export const MathLOG10E: typeof Math.LOG10E
91  export const MathLOG2E: typeof Math.LOG2E
92  export const MathPI: typeof Math.PI
93  export const MathSQRT1_2: typeof Math.SQRT1_2
94  export const MathSQRT2: typeof Math.SQRT2
95  export const ReflectDefineProperty: typeof Reflect.defineProperty
96  export const ReflectDeleteProperty: typeof Reflect.deleteProperty
97  export const ReflectApply: typeof Reflect.apply
98  export const ReflectConstruct: typeof Reflect.construct
99  export const ReflectGet: typeof Reflect.get
100  export const ReflectGetOwnPropertyDescriptor: typeof Reflect.getOwnPropertyDescriptor
101  export const ReflectGetPrototypeOf: typeof Reflect.getPrototypeOf
102  export const ReflectHas: typeof Reflect.has
103  export const ReflectIsExtensible: typeof Reflect.isExtensible
104  export const ReflectOwnKeys: typeof Reflect.ownKeys
105  export const ReflectPreventExtensions: typeof Reflect.preventExtensions
106  export const ReflectSet: typeof Reflect.set
107  export const ReflectSetPrototypeOf: typeof Reflect.setPrototypeOf
108  export import AggregateError = globalThis.AggregateError;
109  export const AggregateErrorPrototype: typeof AggregateError.prototype
110  export import Array = globalThis.Array;
111  export const ArrayPrototype: typeof Array.prototype
112  export const ArrayIsArray: typeof Array.isArray
113  export const ArrayFrom: typeof Array.from
114  export const ArrayOf: typeof Array.of
115  export const ArrayPrototypeConcat: UncurryThis<typeof Array.prototype.concat>
116  export const ArrayPrototypeCopyWithin: UncurryThis<typeof Array.prototype.copyWithin>
117  export const ArrayPrototypeFill: UncurryThis<typeof Array.prototype.fill>
118  export const ArrayPrototypeFind: UncurryThis<typeof Array.prototype.find>
119  export const ArrayPrototypeFindIndex: UncurryThis<typeof Array.prototype.findIndex>
120  export const ArrayPrototypeLastIndexOf: UncurryThis<typeof Array.prototype.lastIndexOf>
121  export const ArrayPrototypePop: UncurryThis<typeof Array.prototype.pop>
122  export const ArrayPrototypePush: UncurryThis<typeof Array.prototype.push>
123  export const ArrayPrototypePushApply: UncurryThisStaticApply<typeof Array.prototype.push>
124  export const ArrayPrototypeReverse: UncurryThis<typeof Array.prototype.reverse>
125  export const ArrayPrototypeShift: UncurryThis<typeof Array.prototype.shift>
126  export const ArrayPrototypeUnshift: UncurryThis<typeof Array.prototype.unshift>
127  export const ArrayPrototypeUnshiftApply: UncurryThisStaticApply<typeof Array.prototype.unshift>
128  export const ArrayPrototypeSlice: UncurryThis<typeof Array.prototype.slice>
129  export const ArrayPrototypeSort: UncurryThis<typeof Array.prototype.sort>
130  export const ArrayPrototypeSplice: UncurryThis<typeof Array.prototype.splice>
131  export const ArrayPrototypeIncludes: UncurryThis<typeof Array.prototype.includes>
132  export const ArrayPrototypeIndexOf: UncurryThis<typeof Array.prototype.indexOf>
133  export const ArrayPrototypeJoin: UncurryThis<typeof Array.prototype.join>
134  export const ArrayPrototypeKeys: UncurryThis<typeof Array.prototype.keys>
135  export const ArrayPrototypeEntries: UncurryThis<typeof Array.prototype.entries>
136  export const ArrayPrototypeValues: UncurryThis<typeof Array.prototype.values>
137  export const ArrayPrototypeForEach: UncurryThis<typeof Array.prototype.forEach>
138  export const ArrayPrototypeFilter: UncurryThis<typeof Array.prototype.filter>
139  export const ArrayPrototypeFlat: UncurryThis<typeof Array.prototype.flat>
140  export const ArrayPrototypeFlatMap: UncurryThis<typeof Array.prototype.flatMap>
141  export const ArrayPrototypeMap: UncurryThis<typeof Array.prototype.map>
142  export const ArrayPrototypeEvery: UncurryThis<typeof Array.prototype.every>
143  export const ArrayPrototypeSome: UncurryThis<typeof Array.prototype.some>
144  export const ArrayPrototypeReduce: UncurryThis<typeof Array.prototype.reduce>
145  export const ArrayPrototypeReduceRight: UncurryThis<typeof Array.prototype.reduceRight>
146  export const ArrayPrototypeToLocaleString: UncurryThis<typeof Array.prototype.toLocaleString>
147  export const ArrayPrototypeToString: UncurryThis<typeof Array.prototype.toString>
148  export const ArrayPrototypeSymbolIterator: UncurryMethod<typeof Array.prototype, typeof Symbol.iterator>;
149  export import ArrayBuffer = globalThis.ArrayBuffer;
150  export const ArrayBufferPrototype: typeof ArrayBuffer.prototype
151  export const ArrayBufferIsView: typeof ArrayBuffer.isView
152  export const ArrayBufferPrototypeSlice: UncurryThis<typeof ArrayBuffer.prototype.slice>
153  export const AsyncIteratorPrototype: AsyncIterable<any>;
154  export import BigInt = globalThis.BigInt;
155  export const BigIntPrototype: typeof BigInt.prototype
156  export const BigIntAsUintN: typeof BigInt.asUintN
157  export const BigIntAsIntN: typeof BigInt.asIntN
158  export const BigIntPrototypeToLocaleString: UncurryThis<typeof BigInt.prototype.toLocaleString>
159  export const BigIntPrototypeToString: UncurryThis<typeof BigInt.prototype.toString>
160  export const BigIntPrototypeValueOf: UncurryThis<typeof BigInt.prototype.valueOf>
161  export import BigInt64Array = globalThis.BigInt64Array;
162  export const BigInt64ArrayPrototype: typeof BigInt64Array.prototype
163  export const BigInt64ArrayBYTES_PER_ELEMENT: typeof BigInt64Array.BYTES_PER_ELEMENT
164  export import BigUint64Array = globalThis.BigUint64Array;
165  export const BigUint64ArrayPrototype: typeof BigUint64Array.prototype
166  export const BigUint64ArrayBYTES_PER_ELEMENT: typeof BigUint64Array.BYTES_PER_ELEMENT
167  export import Boolean = globalThis.Boolean;
168  export const BooleanPrototype: typeof Boolean.prototype
169  export const BooleanPrototypeToString: UncurryThis<typeof Boolean.prototype.toString>
170  export const BooleanPrototypeValueOf: UncurryThis<typeof Boolean.prototype.valueOf>
171  export import DataView = globalThis.DataView;
172  export const DataViewPrototype: typeof DataView.prototype
173  export const DataViewPrototypeGetInt8: UncurryThis<typeof DataView.prototype.getInt8>
174  export const DataViewPrototypeSetInt8: UncurryThis<typeof DataView.prototype.setInt8>
175  export const DataViewPrototypeGetUint8: UncurryThis<typeof DataView.prototype.getUint8>
176  export const DataViewPrototypeSetUint8: UncurryThis<typeof DataView.prototype.setUint8>
177  export const DataViewPrototypeGetInt16: UncurryThis<typeof DataView.prototype.getInt16>
178  export const DataViewPrototypeSetInt16: UncurryThis<typeof DataView.prototype.setInt16>
179  export const DataViewPrototypeGetUint16: UncurryThis<typeof DataView.prototype.getUint16>
180  export const DataViewPrototypeSetUint16: UncurryThis<typeof DataView.prototype.setUint16>
181  export const DataViewPrototypeGetInt32: UncurryThis<typeof DataView.prototype.getInt32>
182  export const DataViewPrototypeSetInt32: UncurryThis<typeof DataView.prototype.setInt32>
183  export const DataViewPrototypeGetUint32: UncurryThis<typeof DataView.prototype.getUint32>
184  export const DataViewPrototypeSetUint32: UncurryThis<typeof DataView.prototype.setUint32>
185  export const DataViewPrototypeGetFloat32: UncurryThis<typeof DataView.prototype.getFloat32>
186  export const DataViewPrototypeSetFloat32: UncurryThis<typeof DataView.prototype.setFloat32>
187  export const DataViewPrototypeGetFloat64: UncurryThis<typeof DataView.prototype.getFloat64>
188  export const DataViewPrototypeSetFloat64: UncurryThis<typeof DataView.prototype.setFloat64>
189  export const DataViewPrototypeGetBigInt64: UncurryThis<typeof DataView.prototype.getBigInt64>
190  export const DataViewPrototypeSetBigInt64: UncurryThis<typeof DataView.prototype.setBigInt64>
191  export const DataViewPrototypeGetBigUint64: UncurryThis<typeof DataView.prototype.getBigUint64>
192  export const DataViewPrototypeSetBigUint64: UncurryThis<typeof DataView.prototype.setBigUint64>
193  export const DataViewPrototypeGetBuffer: UncurryGetter<typeof DataView.prototype, "buffer">;
194  export const DataViewPrototypeGetByteLength: UncurryGetter<typeof DataView.prototype, "byteLength">;
195  export const DataViewPrototypeGetByteOffset: UncurryGetter<typeof DataView.prototype, "byteOffset">;
196  export import Date = globalThis.Date;
197  export const DatePrototype: typeof Date.prototype
198  export const DateNow: typeof Date.now
199  export const DateParse: typeof Date.parse
200  export const DateUTC: typeof Date.UTC
201  export const DatePrototypeToString: UncurryThis<typeof Date.prototype.toString>
202  export const DatePrototypeToDateString: UncurryThis<typeof Date.prototype.toDateString>
203  export const DatePrototypeToTimeString: UncurryThis<typeof Date.prototype.toTimeString>
204  export const DatePrototypeToISOString: UncurryThis<typeof Date.prototype.toISOString>
205  export const DatePrototypeToUTCString: UncurryThis<typeof Date.prototype.toUTCString>
206  export const DatePrototypeToGMTString: UncurryThis<typeof Date.prototype.toGMTString>
207  export const DatePrototypeGetDate: UncurryThis<typeof Date.prototype.getDate>
208  export const DatePrototypeSetDate: UncurryThis<typeof Date.prototype.setDate>
209  export const DatePrototypeGetDay: UncurryThis<typeof Date.prototype.getDay>
210  export const DatePrototypeGetFullYear: UncurryThis<typeof Date.prototype.getFullYear>
211  export const DatePrototypeSetFullYear: UncurryThis<typeof Date.prototype.setFullYear>
212  export const DatePrototypeGetHours: UncurryThis<typeof Date.prototype.getHours>
213  export const DatePrototypeSetHours: UncurryThis<typeof Date.prototype.setHours>
214  export const DatePrototypeGetMilliseconds: UncurryThis<typeof Date.prototype.getMilliseconds>
215  export const DatePrototypeSetMilliseconds: UncurryThis<typeof Date.prototype.setMilliseconds>
216  export const DatePrototypeGetMinutes: UncurryThis<typeof Date.prototype.getMinutes>
217  export const DatePrototypeSetMinutes: UncurryThis<typeof Date.prototype.setMinutes>
218  export const DatePrototypeGetMonth: UncurryThis<typeof Date.prototype.getMonth>
219  export const DatePrototypeSetMonth: UncurryThis<typeof Date.prototype.setMonth>
220  export const DatePrototypeGetSeconds: UncurryThis<typeof Date.prototype.getSeconds>
221  export const DatePrototypeSetSeconds: UncurryThis<typeof Date.prototype.setSeconds>
222  export const DatePrototypeGetTime: UncurryThis<typeof Date.prototype.getTime>
223  export const DatePrototypeSetTime: UncurryThis<typeof Date.prototype.setTime>
224  export const DatePrototypeGetTimezoneOffset: UncurryThis<typeof Date.prototype.getTimezoneOffset>
225  export const DatePrototypeGetUTCDate: UncurryThis<typeof Date.prototype.getUTCDate>
226  export const DatePrototypeSetUTCDate: UncurryThis<typeof Date.prototype.setUTCDate>
227  export const DatePrototypeGetUTCDay: UncurryThis<typeof Date.prototype.getUTCDay>
228  export const DatePrototypeGetUTCFullYear: UncurryThis<typeof Date.prototype.getUTCFullYear>
229  export const DatePrototypeSetUTCFullYear: UncurryThis<typeof Date.prototype.setUTCFullYear>
230  export const DatePrototypeGetUTCHours: UncurryThis<typeof Date.prototype.getUTCHours>
231  export const DatePrototypeSetUTCHours: UncurryThis<typeof Date.prototype.setUTCHours>
232  export const DatePrototypeGetUTCMilliseconds: UncurryThis<typeof Date.prototype.getUTCMilliseconds>
233  export const DatePrototypeSetUTCMilliseconds: UncurryThis<typeof Date.prototype.setUTCMilliseconds>
234  export const DatePrototypeGetUTCMinutes: UncurryThis<typeof Date.prototype.getUTCMinutes>
235  export const DatePrototypeSetUTCMinutes: UncurryThis<typeof Date.prototype.setUTCMinutes>
236  export const DatePrototypeGetUTCMonth: UncurryThis<typeof Date.prototype.getUTCMonth>
237  export const DatePrototypeSetUTCMonth: UncurryThis<typeof Date.prototype.setUTCMonth>
238  export const DatePrototypeGetUTCSeconds: UncurryThis<typeof Date.prototype.getUTCSeconds>
239  export const DatePrototypeSetUTCSeconds: UncurryThis<typeof Date.prototype.setUTCSeconds>
240  export const DatePrototypeValueOf: UncurryThis<typeof Date.prototype.valueOf>
241  export const DatePrototypeGetYear: UncurryThis<typeof Date.prototype.getYear>
242  export const DatePrototypeSetYear: UncurryThis<typeof Date.prototype.setYear>
243  export const DatePrototypeToJSON: UncurryThis<typeof Date.prototype.toJSON>
244  export const DatePrototypeToLocaleString: UncurryThis<typeof Date.prototype.toLocaleString>
245  export const DatePrototypeToLocaleDateString: UncurryThis<typeof Date.prototype.toLocaleDateString>
246  export const DatePrototypeToLocaleTimeString: UncurryThis<typeof Date.prototype.toLocaleTimeString>
247  export const DatePrototypeSymbolToPrimitive: UncurryMethod<typeof Date.prototype, typeof Symbol.toPrimitive>;
248  export import Error = globalThis.Error;
249  export const ErrorPrototype: typeof Error.prototype
250  export const ErrorCaptureStackTrace: typeof Error.captureStackTrace
251  export const ErrorStackTraceLimit: typeof Error.stackTraceLimit
252  export const ErrorPrototypeToString: UncurryThis<typeof Error.prototype.toString>
253  export import EvalError = globalThis.EvalError;
254  export const EvalErrorPrototype: typeof EvalError.prototype
255  export import Float32Array = globalThis.Float32Array;
256  export const Float32ArrayPrototype: typeof Float32Array.prototype
257  export const Float32ArrayBYTES_PER_ELEMENT: typeof Float32Array.BYTES_PER_ELEMENT
258  export import Float64Array = globalThis.Float64Array;
259  export const Float64ArrayPrototype: typeof Float64Array.prototype
260  export const Float64ArrayBYTES_PER_ELEMENT: typeof Float64Array.BYTES_PER_ELEMENT
261  export import Function = globalThis.Function;
262  export const FunctionLength: typeof Function.length
263  export const FunctionName: typeof Function.name
264  export const FunctionPrototype: typeof Function.prototype
265  export const FunctionPrototypeApply: UncurryThis<typeof Function.prototype.apply>
266  export const FunctionPrototypeBind: UncurryThis<typeof Function.prototype.bind>
267  export const FunctionPrototypeCall: UncurryThis<typeof Function.prototype.call>
268  export const FunctionPrototypeToString: UncurryThis<typeof Function.prototype.toString>
269  export import Int16Array = globalThis.Int16Array;
270  export const Int16ArrayPrototype: typeof Int16Array.prototype
271  export const Int16ArrayBYTES_PER_ELEMENT: typeof Int16Array.BYTES_PER_ELEMENT
272  export import Int32Array = globalThis.Int32Array;
273  export const Int32ArrayPrototype: typeof Int32Array.prototype
274  export const Int32ArrayBYTES_PER_ELEMENT: typeof Int32Array.BYTES_PER_ELEMENT
275  export import Int8Array = globalThis.Int8Array;
276  export const Int8ArrayPrototype: typeof Int8Array.prototype
277  export const Int8ArrayBYTES_PER_ELEMENT: typeof Int8Array.BYTES_PER_ELEMENT
278  export import Map = globalThis.Map;
279  export const MapPrototype: typeof Map.prototype
280  export const MapPrototypeGet: UncurryThis<typeof Map.prototype.get>
281  export const MapPrototypeSet: UncurryThis<typeof Map.prototype.set>
282  export const MapPrototypeHas: UncurryThis<typeof Map.prototype.has>
283  export const MapPrototypeDelete: UncurryThis<typeof Map.prototype.delete>
284  export const MapPrototypeClear: UncurryThis<typeof Map.prototype.clear>
285  export const MapPrototypeEntries: UncurryThis<typeof Map.prototype.entries>
286  export const MapPrototypeForEach: UncurryThis<typeof Map.prototype.forEach>
287  export const MapPrototypeKeys: UncurryThis<typeof Map.prototype.keys>
288  export const MapPrototypeValues: UncurryThis<typeof Map.prototype.values>
289  export const MapPrototypeGetSize: UncurryGetter<typeof Map.prototype, "size">;
290  export import Number = globalThis.Number;
291  export const NumberPrototype: typeof Number.prototype
292  export const NumberIsFinite: typeof Number.isFinite
293  export const NumberIsInteger: typeof Number.isInteger
294  export const NumberIsNaN: typeof Number.isNaN
295  export const NumberIsSafeInteger: typeof Number.isSafeInteger
296  export const NumberParseFloat: typeof Number.parseFloat
297  export const NumberParseInt: typeof Number.parseInt
298  export const NumberMAX_VALUE: typeof Number.MAX_VALUE
299  export const NumberMIN_VALUE: typeof Number.MIN_VALUE
300  export const NumberNaN: typeof Number.NaN
301  export const NumberNEGATIVE_INFINITY: typeof Number.NEGATIVE_INFINITY
302  export const NumberPOSITIVE_INFINITY: typeof Number.POSITIVE_INFINITY
303  export const NumberMAX_SAFE_INTEGER: typeof Number.MAX_SAFE_INTEGER
304  export const NumberMIN_SAFE_INTEGER: typeof Number.MIN_SAFE_INTEGER
305  export const NumberEPSILON: typeof Number.EPSILON
306  export const NumberPrototypeToExponential: UncurryThis<typeof Number.prototype.toExponential>
307  export const NumberPrototypeToFixed: UncurryThis<typeof Number.prototype.toFixed>
308  export const NumberPrototypeToPrecision: UncurryThis<typeof Number.prototype.toPrecision>
309  export const NumberPrototypeToString: UncurryThis<typeof Number.prototype.toString>
310  export const NumberPrototypeValueOf: UncurryThis<typeof Number.prototype.valueOf>
311  export const NumberPrototypeToLocaleString: UncurryThis<typeof Number.prototype.toLocaleString>
312  export import Object = globalThis.Object;
313  export const ObjectPrototype: typeof Object.prototype
314  export const ObjectAssign: typeof Object.assign
315  export const ObjectGetOwnPropertyDescriptor: typeof Object.getOwnPropertyDescriptor
316  export const ObjectGetOwnPropertyDescriptors: typeof Object.getOwnPropertyDescriptors
317  export const ObjectGetOwnPropertyNames: typeof Object.getOwnPropertyNames
318  export const ObjectGetOwnPropertySymbols: typeof Object.getOwnPropertySymbols
319  export const ObjectIs: typeof Object.is
320  export const ObjectPreventExtensions: typeof Object.preventExtensions
321  export const ObjectSeal: typeof Object.seal
322  export const ObjectCreate: typeof Object.create
323  export const ObjectDefineProperties: typeof Object.defineProperties
324  export const ObjectDefineProperty: typeof Object.defineProperty
325  export const ObjectFreeze: typeof Object.freeze
326  export const ObjectGetPrototypeOf: typeof Object.getPrototypeOf
327  export const ObjectSetPrototypeOf: typeof Object.setPrototypeOf
328  export const ObjectIsExtensible: typeof Object.isExtensible
329  export const ObjectIsFrozen: typeof Object.isFrozen
330  export const ObjectIsSealed: typeof Object.isSealed
331  export const ObjectKeys: typeof Object.keys
332  export const ObjectEntries: typeof Object.entries
333  export const ObjectFromEntries: typeof Object.fromEntries
334  export const ObjectValues: typeof Object.values
335  export const ObjectPrototype__defineGetter__: UncurryThis<typeof Object.prototype.__defineGetter__>
336  export const ObjectPrototype__defineSetter__: UncurryThis<typeof Object.prototype.__defineSetter__>
337  export const ObjectPrototypeHasOwnProperty: UncurryThis<typeof Object.prototype.hasOwnProperty>
338  export const ObjectPrototype__lookupGetter__: UncurryThis<typeof Object.prototype.__lookupGetter__>
339  export const ObjectPrototype__lookupSetter__: UncurryThis<typeof Object.prototype.__lookupSetter__>
340  export const ObjectPrototypeIsPrototypeOf: UncurryThis<typeof Object.prototype.isPrototypeOf>
341  export const ObjectPrototypePropertyIsEnumerable: UncurryThis<typeof Object.prototype.propertyIsEnumerable>
342  export const ObjectPrototypeToString: UncurryThis<typeof Object.prototype.toString>
343  export const ObjectPrototypeValueOf: UncurryThis<typeof Object.prototype.valueOf>
344  export const ObjectPrototypeToLocaleString: UncurryThis<typeof Object.prototype.toLocaleString>
345  export import RangeError = globalThis.RangeError;
346  export const RangeErrorPrototype: typeof RangeError.prototype
347  export import ReferenceError = globalThis.ReferenceError;
348  export const ReferenceErrorPrototype: typeof ReferenceError.prototype
349  export import RegExp = globalThis.RegExp;
350  export const RegExpPrototype: typeof RegExp.prototype
351  export const RegExpPrototypeExec: UncurryThis<typeof RegExp.prototype.exec>
352  export const RegExpPrototypeCompile: UncurryThis<typeof RegExp.prototype.compile>
353  export const RegExpPrototypeToString: UncurryThis<typeof RegExp.prototype.toString>
354  export const RegExpPrototypeTest: UncurryThis<typeof RegExp.prototype.test>
355  export const RegExpPrototypeGetDotAll: UncurryGetter<typeof RegExp.prototype, "dotAll">;
356  export const RegExpPrototypeGetFlags: UncurryGetter<typeof RegExp.prototype, "flags">;
357  export const RegExpPrototypeGetGlobal: UncurryGetter<typeof RegExp.prototype, "global">;
358  export const RegExpPrototypeGetIgnoreCase: UncurryGetter<typeof RegExp.prototype, "ignoreCase">;
359  export const RegExpPrototypeGetMultiline: UncurryGetter<typeof RegExp.prototype, "multiline">;
360  export const RegExpPrototypeGetSource: UncurryGetter<typeof RegExp.prototype, "source">;
361  export const RegExpPrototypeGetSticky: UncurryGetter<typeof RegExp.prototype, "sticky">;
362  export const RegExpPrototypeGetUnicode: UncurryGetter<typeof RegExp.prototype, "unicode">;
363  export import Set = globalThis.Set;
364  export const SetLength: typeof Set.length
365  export const SetName: typeof Set.name
366  export const SetPrototype: typeof Set.prototype
367  export const SetPrototypeHas: UncurryThis<typeof Set.prototype.has>
368  export const SetPrototypeAdd: UncurryThis<typeof Set.prototype.add>
369  export const SetPrototypeDelete: UncurryThis<typeof Set.prototype.delete>
370  export const SetPrototypeClear: UncurryThis<typeof Set.prototype.clear>
371  export const SetPrototypeEntries: UncurryThis<typeof Set.prototype.entries>
372  export const SetPrototypeForEach: UncurryThis<typeof Set.prototype.forEach>
373  export const SetPrototypeValues: UncurryThis<typeof Set.prototype.values>
374  export const SetPrototypeKeys: UncurryThis<typeof Set.prototype.keys>
375  export const SetPrototypeGetSize: UncurryGetter<typeof Set.prototype, "size">;
376  export import String = globalThis.String;
377  export const StringLength: typeof String.length
378  export const StringName: typeof String.name
379  export const StringPrototype: typeof String.prototype
380  export const StringFromCharCode: typeof String.fromCharCode
381  export const StringFromCharCodeApply: StaticApply<typeof String.fromCharCode>
382  export const StringFromCodePoint: typeof String.fromCodePoint
383  export const StringFromCodePointApply: StaticApply<typeof String.fromCodePoint>
384  export const StringRaw: typeof String.raw
385  export const StringPrototypeAnchor: UncurryThis<typeof String.prototype.anchor>
386  export const StringPrototypeBig: UncurryThis<typeof String.prototype.big>
387  export const StringPrototypeBlink: UncurryThis<typeof String.prototype.blink>
388  export const StringPrototypeBold: UncurryThis<typeof String.prototype.bold>
389  export const StringPrototypeCharAt: UncurryThis<typeof String.prototype.charAt>
390  export const StringPrototypeCharCodeAt: UncurryThis<typeof String.prototype.charCodeAt>
391  export const StringPrototypeCodePointAt: UncurryThis<typeof String.prototype.codePointAt>
392  export const StringPrototypeConcat: UncurryThis<typeof String.prototype.concat>
393  export const StringPrototypeEndsWith: UncurryThis<typeof String.prototype.endsWith>
394  export const StringPrototypeFontcolor: UncurryThis<typeof String.prototype.fontcolor>
395  export const StringPrototypeFontsize: UncurryThis<typeof String.prototype.fontsize>
396  export const StringPrototypeFixed: UncurryThis<typeof String.prototype.fixed>
397  export const StringPrototypeIncludes: UncurryThis<typeof String.prototype.includes>
398  export const StringPrototypeIndexOf: UncurryThis<typeof String.prototype.indexOf>
399  export const StringPrototypeItalics: UncurryThis<typeof String.prototype.italics>
400  export const StringPrototypeLastIndexOf: UncurryThis<typeof String.prototype.lastIndexOf>
401  export const StringPrototypeLink: UncurryThis<typeof String.prototype.link>
402  export const StringPrototypeLocaleCompare: UncurryThis<typeof String.prototype.localeCompare>
403  export const StringPrototypeMatch: UncurryThis<typeof String.prototype.match>
404  export const StringPrototypeMatchAll: UncurryThis<typeof String.prototype.matchAll>
405  export const StringPrototypeNormalize: UncurryThis<typeof String.prototype.normalize>
406  export const StringPrototypePadEnd: UncurryThis<typeof String.prototype.padEnd>
407  export const StringPrototypePadStart: UncurryThis<typeof String.prototype.padStart>
408  export const StringPrototypeRepeat: UncurryThis<typeof String.prototype.repeat>
409  export const StringPrototypeReplace: UncurryThis<typeof String.prototype.replace>
410  export const StringPrototypeSearch: UncurryThis<typeof String.prototype.search>
411  export const StringPrototypeSlice: UncurryThis<typeof String.prototype.slice>
412  export const StringPrototypeSmall: UncurryThis<typeof String.prototype.small>
413  export const StringPrototypeSplit: UncurryThis<typeof String.prototype.split>
414  export const StringPrototypeStrike: UncurryThis<typeof String.prototype.strike>
415  export const StringPrototypeSub: UncurryThis<typeof String.prototype.sub>
416  export const StringPrototypeSubstr: UncurryThis<typeof String.prototype.substr>
417  export const StringPrototypeSubstring: UncurryThis<typeof String.prototype.substring>
418  export const StringPrototypeSup: UncurryThis<typeof String.prototype.sup>
419  export const StringPrototypeStartsWith: UncurryThis<typeof String.prototype.startsWith>
420  export const StringPrototypeToString: UncurryThis<typeof String.prototype.toString>
421  export const StringPrototypeTrim: UncurryThis<typeof String.prototype.trim>
422  export const StringPrototypeTrimStart: UncurryThis<typeof String.prototype.trimStart>
423  export const StringPrototypeTrimLeft: UncurryThis<typeof String.prototype.trimLeft>
424  export const StringPrototypeTrimEnd: UncurryThis<typeof String.prototype.trimEnd>
425  export const StringPrototypeTrimRight: UncurryThis<typeof String.prototype.trimRight>
426  export const StringPrototypeToLocaleLowerCase: UncurryThis<typeof String.prototype.toLocaleLowerCase>
427  export const StringPrototypeToLocaleUpperCase: UncurryThis<typeof String.prototype.toLocaleUpperCase>
428  export const StringPrototypeToLowerCase: UncurryThis<typeof String.prototype.toLowerCase>
429  export const StringPrototypeToUpperCase: UncurryThis<typeof String.prototype.toUpperCase>
430  export const StringPrototypeValueOf: UncurryThis<typeof String.prototype.valueOf>
431  export const StringPrototypeReplaceAll: UncurryThis<typeof String.prototype.replaceAll>
432  export import Symbol = globalThis.Symbol;
433  export const SymbolPrototype: typeof Symbol.prototype
434  export const SymbolFor: typeof Symbol.for
435  export const SymbolKeyFor: typeof Symbol.keyFor
436  export const SymbolAsyncIterator: typeof Symbol.asyncIterator
437  export const SymbolDispose: typeof Symbol // TODO(MoLow): use typeof Symbol.dispose when it's available
438  export const SymbolAsyncDispose: typeof Symbol // TODO(MoLow): use typeof Symbol.asyncDispose when it's available
439  export const SymbolHasInstance: typeof Symbol.hasInstance
440  export const SymbolIsConcatSpreadable: typeof Symbol.isConcatSpreadable
441  export const SymbolIterator: typeof Symbol.iterator
442  export const SymbolMatch: typeof Symbol.match
443  export const SymbolMatchAll: typeof Symbol.matchAll
444  export const SymbolReplace: typeof Symbol.replace
445  export const SymbolSearch: typeof Symbol.search
446  export const SymbolSpecies: typeof Symbol.species
447  export const SymbolSplit: typeof Symbol.split
448  export const SymbolToPrimitive: typeof Symbol.toPrimitive
449  export const SymbolToStringTag: typeof Symbol.toStringTag
450  export const SymbolUnscopables: typeof Symbol.unscopables
451  export const SymbolPrototypeToString: UncurryThis<typeof Symbol.prototype.toString>
452  export const SymbolPrototypeValueOf: UncurryThis<typeof Symbol.prototype.valueOf>
453  export const SymbolPrototypeSymbolToPrimitive: UncurryMethod<typeof Symbol.prototype, typeof Symbol.toPrimitive, symbol | Symbol>;
454  export const SymbolPrototypeGetDescription: UncurryGetter<typeof Symbol.prototype, "description", symbol | Symbol>;
455  export import SyntaxError = globalThis.SyntaxError;
456  export const SyntaxErrorPrototype: typeof SyntaxError.prototype
457  export import TypeError = globalThis.TypeError;
458  export const TypeErrorPrototype: typeof TypeError.prototype
459  export function TypedArrayFrom<T extends TypedArray>(
460    constructor: new (length: number) => T,
461    source:
462      | Iterable<TypedArrayContentType<T>>
463      | ArrayLike<TypedArrayContentType<T>>,
464  ): T;
465  export function TypedArrayFrom<T extends TypedArray, U, THIS_ARG = undefined>(
466    constructor: new (length: number) => T,
467    source: Iterable<U> | ArrayLike<U>,
468    mapfn: (
469      this: THIS_ARG,
470      value: U,
471      index: number,
472    ) => TypedArrayContentType<T>,
473    thisArg?: THIS_ARG,
474  ): T;
475  export function TypedArrayOf<T extends TypedArray>(
476    constructor: new (length: number) => T,
477    ...items: readonly TypedArrayContentType<T>[]
478  ): T;
479  export function TypedArrayOfApply<T extends TypedArray>(
480    constructor: new (length: number) => T,
481    items: readonly TypedArrayContentType<T>[],
482  ): T;
483  export const TypedArrayPrototypeGetBuffer: UncurryGetter<TypedArray, "buffer">;
484  export const TypedArrayPrototypeGetByteLength: UncurryGetter<TypedArray, "byteLength">;
485  export const TypedArrayPrototypeGetByteOffset: UncurryGetter<TypedArray, "byteOffset">;
486  export const TypedArrayPrototypeGetLength: UncurryGetter<TypedArray, "length">;
487  export function TypedArrayPrototypeGetSymbolToStringTag(self: unknown):
488    | 'Int8Array'
489    | 'Int16Array'
490    | 'Int32Array'
491    | 'Uint8Array'
492    | 'Uint16Array'
493    | 'Uint32Array'
494    | 'Uint8ClampedArray'
495    | 'BigInt64Array'
496    | 'BigUint64Array'
497    | 'Float32Array'
498    | 'Float64Array'
499    | undefined;
500  export import URIError = globalThis.URIError;
501  export const URIErrorPrototype: typeof URIError.prototype
502  export import Uint16Array = globalThis.Uint16Array;
503  export const Uint16ArrayPrototype: typeof Uint16Array.prototype
504  export const Uint16ArrayBYTES_PER_ELEMENT: typeof Uint16Array.BYTES_PER_ELEMENT
505  export import Uint32Array = globalThis.Uint32Array;
506  export const Uint32ArrayPrototype: typeof Uint32Array.prototype
507  export const Uint32ArrayBYTES_PER_ELEMENT: typeof Uint32Array.BYTES_PER_ELEMENT
508  export import Uint8Array = globalThis.Uint8Array;
509  export const Uint8ArrayPrototype: typeof Uint8Array.prototype
510  export const Uint8ArrayBYTES_PER_ELEMENT: typeof Uint8Array.BYTES_PER_ELEMENT
511  export import Uint8ClampedArray = globalThis.Uint8ClampedArray;
512  export const Uint8ClampedArrayPrototype: typeof Uint8ClampedArray.prototype
513  export const Uint8ClampedArrayBYTES_PER_ELEMENT: typeof Uint8ClampedArray.BYTES_PER_ELEMENT
514  export import WeakMap = globalThis.WeakMap;
515  export const WeakMapPrototype: typeof WeakMap.prototype
516  export const WeakMapPrototypeDelete: UncurryThis<typeof WeakMap.prototype.delete>
517  export const WeakMapPrototypeGet: UncurryThis<typeof WeakMap.prototype.get>
518  export const WeakMapPrototypeSet: UncurryThis<typeof WeakMap.prototype.set>
519  export const WeakMapPrototypeHas: UncurryThis<typeof WeakMap.prototype.has>
520  export import WeakSet = globalThis.WeakSet;
521  export const WeakSetPrototype: typeof WeakSet.prototype
522  export const WeakSetPrototypeDelete: UncurryThis<typeof WeakSet.prototype.delete>
523  export const WeakSetPrototypeHas: UncurryThis<typeof WeakSet.prototype.has>
524  export const WeakSetPrototypeAdd: UncurryThis<typeof WeakSet.prototype.add>
525  export import Promise = globalThis.Promise;
526  export const PromisePrototype: typeof Promise.prototype
527  export const PromiseAll: typeof Promise.all
528  export const PromiseRace: typeof Promise.race
529  export const PromiseResolve: typeof Promise.resolve
530  export const PromiseReject: typeof Promise.reject
531  export const PromiseAllSettled: typeof Promise.allSettled
532  export const PromiseAny: typeof Promise.any
533  export const PromisePrototypeThen: UncurryThis<typeof Promise.prototype.then>
534  export const PromisePrototypeCatch: UncurryThis<typeof Promise.prototype.catch>
535  export const PromisePrototypeFinally: UncurryThis<typeof Promise.prototype.finally>
536  export import Proxy = globalThis.Proxy
537  import _globalThis = globalThis
538  export { _globalThis as globalThis }
539}
540