CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
lib.es2020.bigint.d.ts764 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABILITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference lib="es2020.intl" />18 19interface BigIntToLocaleStringOptions {20    /**21     * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.22     */23    localeMatcher?: string;24    /**25     * The formatting style to use , the default is "decimal".26     */27    style?: string;28 29    numberingSystem?: string;30    /**31     * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.32     */33    unit?: string;34 35    /**36     * The unit formatting style to use in unit formatting, the defaults is "short".37     */38    unitDisplay?: string;39 40    /**41     * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".42     */43    currency?: string;44 45    /**46     * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".47     *48     * "symbol" to use a localized currency symbol such as €,49     *50     * "code" to use the ISO currency code,51     *52     * "name" to use a localized currency name such as "dollar"53     */54    currencyDisplay?: string;55 56    /**57     * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.58     */59    useGrouping?: boolean;60 61    /**62     * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.63     */64    minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;65 66    /**67     * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).68     */69    minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;70 71    /**72     * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.73     */74    maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;75 76    /**77     * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.78     */79    minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;80 81    /**82     * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.83     */84    maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;85 86    /**87     * The formatting that should be displayed for the number, the defaults is "standard"88     *89     *     "standard" plain number formatting90     *91     *     "scientific" return the order-of-magnitude for formatted number.92     *93     *     "engineering" return the exponent of ten when divisible by three94     *95     *     "compact" string representing exponent, defaults is using the "short" form96     */97    notation?: string;98 99    /**100     * used only when notation is "compact"101     */102    compactDisplay?: string;103}104 105interface BigInt {106    /**107     * Returns a string representation of an object.108     * @param radix Specifies a radix for converting numeric values to strings.109     */110    toString(radix?: number): string;111 112    /** Returns a string representation appropriate to the host environment's current locale. */113    toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;114 115    /** Returns the primitive value of the specified object. */116    valueOf(): bigint;117 118    readonly [Symbol.toStringTag]: "BigInt";119}120 121interface BigIntConstructor {122    (value: bigint | boolean | number | string): bigint;123    readonly prototype: BigInt;124 125    /**126     * Interprets the low bits of a BigInt as a 2's-complement signed integer.127     * All higher bits are discarded.128     * @param bits The number of low bits to use129     * @param int The BigInt whose bits to extract130     */131    asIntN(bits: number, int: bigint): bigint;132    /**133     * Interprets the low bits of a BigInt as an unsigned integer.134     * All higher bits are discarded.135     * @param bits The number of low bits to use136     * @param int The BigInt whose bits to extract137     */138    asUintN(bits: number, int: bigint): bigint;139}140 141declare var BigInt: BigIntConstructor;142 143/**144 * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the145 * requested number of bytes could not be allocated, an exception is raised.146 */147interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {148    /** The size in bytes of each element in the array. */149    readonly BYTES_PER_ELEMENT: number;150 151    /** The ArrayBuffer instance referenced by the array. */152    readonly buffer: TArrayBuffer;153 154    /** The length in bytes of the array. */155    readonly byteLength: number;156 157    /** The offset in bytes of the array. */158    readonly byteOffset: number;159 160    /**161     * Returns the this object after copying a section of the array identified by start and end162     * to the same array starting at position target163     * @param target If target is negative, it is treated as length+target where length is the164     * length of the array.165     * @param start If start is negative, it is treated as length+start. If end is negative, it166     * is treated as length+end.167     * @param end If not specified, length of the this object is used as its default value.168     */169    copyWithin(target: number, start: number, end?: number): this;170 171    /** Yields index, value pairs for every entry in the array. */172    entries(): ArrayIterator<[number, bigint]>;173 174    /**175     * Determines whether all the members of an array satisfy the specified test.176     * @param predicate A function that accepts up to three arguments. The every method calls177     * the predicate function for each element in the array until the predicate returns false,178     * or until the end of the array.179     * @param thisArg An object to which the this keyword can refer in the predicate function.180     * If thisArg is omitted, undefined is used as the this value.181     */182    every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;183 184    /**185     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array186     * @param value value to fill array section with187     * @param start index to start filling the array at. If start is negative, it is treated as188     * length+start where length is the length of the array.189     * @param end index to stop filling the array at. If end is negative, it is treated as190     * length+end.191     */192    fill(value: bigint, start?: number, end?: number): this;193 194    /**195     * Returns the elements of an array that meet the condition specified in a callback function.196     * @param predicate A function that accepts up to three arguments. The filter method calls197     * the predicate function one time for each element in the array.198     * @param thisArg An object to which the this keyword can refer in the predicate function.199     * If thisArg is omitted, undefined is used as the this value.200     */201    filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;202 203    /**204     * Returns the value of the first element in the array where predicate is true, and undefined205     * otherwise.206     * @param predicate find calls predicate once for each element of the array, in ascending207     * order, until it finds one where predicate returns true. If such an element is found, find208     * immediately returns that element value. Otherwise, find returns undefined.209     * @param thisArg If provided, it will be used as the this value for each invocation of210     * predicate. If it is not provided, undefined is used instead.211     */212    find(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;213 214    /**215     * Returns the index of the first element in the array where predicate is true, and -1216     * otherwise.217     * @param predicate find calls predicate once for each element of the array, in ascending218     * order, until it finds one where predicate returns true. If such an element is found,219     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.220     * @param thisArg If provided, it will be used as the this value for each invocation of221     * predicate. If it is not provided, undefined is used instead.222     */223    findIndex(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): number;224 225    /**226     * Performs the specified action for each element in an array.227     * @param callbackfn A function that accepts up to three arguments. forEach calls the228     * callbackfn function one time for each element in the array.229     * @param thisArg An object to which the this keyword can refer in the callbackfn function.230     * If thisArg is omitted, undefined is used as the this value.231     */232    forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;233 234    /**235     * Determines whether an array includes a certain element, returning true or false as appropriate.236     * @param searchElement The element to search for.237     * @param fromIndex The position in this array at which to begin searching for searchElement.238     */239    includes(searchElement: bigint, fromIndex?: number): boolean;240 241    /**242     * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.243     * @param searchElement The value to locate in the array.244     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the245     * search starts at index 0.246     */247    indexOf(searchElement: bigint, fromIndex?: number): number;248 249    /**250     * Adds all the elements of an array separated by the specified separator string.251     * @param separator A string used to separate one element of an array from the next in the252     * resulting String. If omitted, the array elements are separated with a comma.253     */254    join(separator?: string): string;255 256    /** Yields each index in the array. */257    keys(): ArrayIterator<number>;258 259    /**260     * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.261     * @param searchElement The value to locate in the array.262     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the263     * search starts at index 0.264     */265    lastIndexOf(searchElement: bigint, fromIndex?: number): number;266 267    /** The length of the array. */268    readonly length: number;269 270    /**271     * Calls a defined callback function on each element of an array, and returns an array that272     * contains the results.273     * @param callbackfn A function that accepts up to three arguments. The map method calls the274     * callbackfn function one time for each element in the array.275     * @param thisArg An object to which the this keyword can refer in the callbackfn function.276     * If thisArg is omitted, undefined is used as the this value.277     */278    map(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;279 280    /**281     * Calls the specified callback function for all the elements in an array. The return value of282     * the callback function is the accumulated result, and is provided as an argument in the next283     * call to the callback function.284     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the285     * callbackfn function one time for each element in the array.286     * @param initialValue If initialValue is specified, it is used as the initial value to start287     * the accumulation. The first call to the callbackfn function provides this value as an argument288     * instead of an array value.289     */290    reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;291 292    /**293     * Calls the specified callback function for all the elements in an array. The return value of294     * the callback function is the accumulated result, and is provided as an argument in the next295     * call to the callback function.296     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the297     * callbackfn function one time for each element in the array.298     * @param initialValue If initialValue is specified, it is used as the initial value to start299     * the accumulation. The first call to the callbackfn function provides this value as an argument300     * instead of an array value.301     */302    reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;303 304    /**305     * Calls the specified callback function for all the elements in an array, in descending order.306     * The return value of the callback function is the accumulated result, and is provided as an307     * argument in the next call to the callback function.308     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls309     * the callbackfn function one time for each element in the array.310     * @param initialValue If initialValue is specified, it is used as the initial value to start311     * the accumulation. The first call to the callbackfn function provides this value as an312     * argument instead of an array value.313     */314    reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;315 316    /**317     * Calls the specified callback function for all the elements in an array, in descending order.318     * The return value of the callback function is the accumulated result, and is provided as an319     * argument in the next call to the callback function.320     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls321     * the callbackfn function one time for each element in the array.322     * @param initialValue If initialValue is specified, it is used as the initial value to start323     * the accumulation. The first call to the callbackfn function provides this value as an argument324     * instead of an array value.325     */326    reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;327 328    /** Reverses the elements in the array. */329    reverse(): this;330 331    /**332     * Sets a value or an array of values.333     * @param array A typed or untyped array of values to set.334     * @param offset The index in the current array at which the values are to be written.335     */336    set(array: ArrayLike<bigint>, offset?: number): void;337 338    /**339     * Returns a section of an array.340     * @param start The beginning of the specified portion of the array.341     * @param end The end of the specified portion of the array.342     */343    slice(start?: number, end?: number): BigInt64Array<ArrayBuffer>;344 345    /**346     * Determines whether the specified callback function returns true for any element of an array.347     * @param predicate A function that accepts up to three arguments. The some method calls the348     * predicate function for each element in the array until the predicate returns true, or until349     * the end of the array.350     * @param thisArg An object to which the this keyword can refer in the predicate function.351     * If thisArg is omitted, undefined is used as the this value.352     */353    some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;354 355    /**356     * Sorts the array.357     * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.358     */359    sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;360 361    /**362     * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements363     * at begin, inclusive, up to end, exclusive.364     * @param begin The index of the beginning of the array.365     * @param end The index of the end of the array.366     */367    subarray(begin?: number, end?: number): BigInt64Array<TArrayBuffer>;368 369    /** Converts the array to a string by using the current locale. */370    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;371 372    /** Returns a string representation of the array. */373    toString(): string;374 375    /** Returns the primitive value of the specified object. */376    valueOf(): BigInt64Array<TArrayBuffer>;377 378    /** Yields each value in the array. */379    values(): ArrayIterator<bigint>;380 381    [Symbol.iterator](): ArrayIterator<bigint>;382 383    readonly [Symbol.toStringTag]: "BigInt64Array";384 385    [index: number]: bigint;386}387interface BigInt64ArrayConstructor {388    readonly prototype: BigInt64Array<ArrayBufferLike>;389    new (length?: number): BigInt64Array<ArrayBuffer>;390    new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;391    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;392    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<ArrayBuffer>;393    new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;394 395    /** The size in bytes of each element in the array. */396    readonly BYTES_PER_ELEMENT: number;397 398    /**399     * Returns a new array from a set of elements.400     * @param items A set of elements to include in the new array object.401     */402    of(...items: bigint[]): BigInt64Array<ArrayBuffer>;403 404    /**405     * Creates an array from an array-like or iterable object.406     * @param arrayLike An array-like object to convert to an array.407     */408    from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;409 410    /**411     * Creates an array from an array-like or iterable object.412     * @param arrayLike An array-like object to convert to an array.413     * @param mapfn A mapping function to call on every element of the array.414     * @param thisArg Value of 'this' used to invoke the mapfn.415     */416    from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;417 418    /**419     * Creates an array from an array-like or iterable object.420     * @param elements An iterable object to convert to an array.421     */422    from(elements: Iterable<bigint>): BigInt64Array<ArrayBuffer>;423 424    /**425     * Creates an array from an array-like or iterable object.426     * @param elements An iterable object to convert to an array.427     * @param mapfn A mapping function to call on every element of the array.428     * @param thisArg Value of 'this' used to invoke the mapfn.429     */430    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;431}432declare var BigInt64Array: BigInt64ArrayConstructor;433 434/**435 * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the436 * requested number of bytes could not be allocated, an exception is raised.437 */438interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {439    /** The size in bytes of each element in the array. */440    readonly BYTES_PER_ELEMENT: number;441 442    /** The ArrayBuffer instance referenced by the array. */443    readonly buffer: TArrayBuffer;444 445    /** The length in bytes of the array. */446    readonly byteLength: number;447 448    /** The offset in bytes of the array. */449    readonly byteOffset: number;450 451    /**452     * Returns the this object after copying a section of the array identified by start and end453     * to the same array starting at position target454     * @param target If target is negative, it is treated as length+target where length is the455     * length of the array.456     * @param start If start is negative, it is treated as length+start. If end is negative, it457     * is treated as length+end.458     * @param end If not specified, length of the this object is used as its default value.459     */460    copyWithin(target: number, start: number, end?: number): this;461 462    /** Yields index, value pairs for every entry in the array. */463    entries(): ArrayIterator<[number, bigint]>;464 465    /**466     * Determines whether all the members of an array satisfy the specified test.467     * @param predicate A function that accepts up to three arguments. The every method calls468     * the predicate function for each element in the array until the predicate returns false,469     * or until the end of the array.470     * @param thisArg An object to which the this keyword can refer in the predicate function.471     * If thisArg is omitted, undefined is used as the this value.472     */473    every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;474 475    /**476     * Changes all array elements from `start` to `end` index to a static `value` and returns the modified array477     * @param value value to fill array section with478     * @param start index to start filling the array at. If start is negative, it is treated as479     * length+start where length is the length of the array.480     * @param end index to stop filling the array at. If end is negative, it is treated as481     * length+end.482     */483    fill(value: bigint, start?: number, end?: number): this;484 485    /**486     * Returns the elements of an array that meet the condition specified in a callback function.487     * @param predicate A function that accepts up to three arguments. The filter method calls488     * the predicate function one time for each element in the array.489     * @param thisArg An object to which the this keyword can refer in the predicate function.490     * If thisArg is omitted, undefined is used as the this value.491     */492    filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;493 494    /**495     * Returns the value of the first element in the array where predicate is true, and undefined496     * otherwise.497     * @param predicate find calls predicate once for each element of the array, in ascending498     * order, until it finds one where predicate returns true. If such an element is found, find499     * immediately returns that element value. Otherwise, find returns undefined.500     * @param thisArg If provided, it will be used as the this value for each invocation of501     * predicate. If it is not provided, undefined is used instead.502     */503    find(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;504 505    /**506     * Returns the index of the first element in the array where predicate is true, and -1507     * otherwise.508     * @param predicate find calls predicate once for each element of the array, in ascending509     * order, until it finds one where predicate returns true. If such an element is found,510     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.511     * @param thisArg If provided, it will be used as the this value for each invocation of512     * predicate. If it is not provided, undefined is used instead.513     */514    findIndex(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): number;515 516    /**517     * Performs the specified action for each element in an array.518     * @param callbackfn A function that accepts up to three arguments. forEach calls the519     * callbackfn function one time for each element in the array.520     * @param thisArg An object to which the this keyword can refer in the callbackfn function.521     * If thisArg is omitted, undefined is used as the this value.522     */523    forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;524 525    /**526     * Determines whether an array includes a certain element, returning true or false as appropriate.527     * @param searchElement The element to search for.528     * @param fromIndex The position in this array at which to begin searching for searchElement.529     */530    includes(searchElement: bigint, fromIndex?: number): boolean;531 532    /**533     * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.534     * @param searchElement The value to locate in the array.535     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the536     * search starts at index 0.537     */538    indexOf(searchElement: bigint, fromIndex?: number): number;539 540    /**541     * Adds all the elements of an array separated by the specified separator string.542     * @param separator A string used to separate one element of an array from the next in the543     * resulting String. If omitted, the array elements are separated with a comma.544     */545    join(separator?: string): string;546 547    /** Yields each index in the array. */548    keys(): ArrayIterator<number>;549 550    /**551     * Returns the index of the last occurrence of a value in an array, or -1 if it is not present.552     * @param searchElement The value to locate in the array.553     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the554     * search starts at index 0.555     */556    lastIndexOf(searchElement: bigint, fromIndex?: number): number;557 558    /** The length of the array. */559    readonly length: number;560 561    /**562     * Calls a defined callback function on each element of an array, and returns an array that563     * contains the results.564     * @param callbackfn A function that accepts up to three arguments. The map method calls the565     * callbackfn function one time for each element in the array.566     * @param thisArg An object to which the this keyword can refer in the callbackfn function.567     * If thisArg is omitted, undefined is used as the this value.568     */569    map(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;570 571    /**572     * Calls the specified callback function for all the elements in an array. The return value of573     * the callback function is the accumulated result, and is provided as an argument in the next574     * call to the callback function.575     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the576     * callbackfn function one time for each element in the array.577     * @param initialValue If initialValue is specified, it is used as the initial value to start578     * the accumulation. The first call to the callbackfn function provides this value as an argument579     * instead of an array value.580     */581    reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;582 583    /**584     * Calls the specified callback function for all the elements in an array. The return value of585     * the callback function is the accumulated result, and is provided as an argument in the next586     * call to the callback function.587     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the588     * callbackfn function one time for each element in the array.589     * @param initialValue If initialValue is specified, it is used as the initial value to start590     * the accumulation. The first call to the callbackfn function provides this value as an argument591     * instead of an array value.592     */593    reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;594 595    /**596     * Calls the specified callback function for all the elements in an array, in descending order.597     * The return value of the callback function is the accumulated result, and is provided as an598     * argument in the next call to the callback function.599     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls600     * the callbackfn function one time for each element in the array.601     * @param initialValue If initialValue is specified, it is used as the initial value to start602     * the accumulation. The first call to the callbackfn function provides this value as an603     * argument instead of an array value.604     */605    reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;606 607    /**608     * Calls the specified callback function for all the elements in an array, in descending order.609     * The return value of the callback function is the accumulated result, and is provided as an610     * argument in the next call to the callback function.611     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls612     * the callbackfn function one time for each element in the array.613     * @param initialValue If initialValue is specified, it is used as the initial value to start614     * the accumulation. The first call to the callbackfn function provides this value as an argument615     * instead of an array value.616     */617    reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;618 619    /** Reverses the elements in the array. */620    reverse(): this;621 622    /**623     * Sets a value or an array of values.624     * @param array A typed or untyped array of values to set.625     * @param offset The index in the current array at which the values are to be written.626     */627    set(array: ArrayLike<bigint>, offset?: number): void;628 629    /**630     * Returns a section of an array.631     * @param start The beginning of the specified portion of the array.632     * @param end The end of the specified portion of the array.633     */634    slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;635 636    /**637     * Determines whether the specified callback function returns true for any element of an array.638     * @param predicate A function that accepts up to three arguments. The some method calls the639     * predicate function for each element in the array until the predicate returns true, or until640     * the end of the array.641     * @param thisArg An object to which the this keyword can refer in the predicate function.642     * If thisArg is omitted, undefined is used as the this value.643     */644    some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;645 646    /**647     * Sorts the array.648     * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.649     */650    sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;651 652    /**653     * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements654     * at begin, inclusive, up to end, exclusive.655     * @param begin The index of the beginning of the array.656     * @param end The index of the end of the array.657     */658    subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;659 660    /** Converts the array to a string by using the current locale. */661    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;662 663    /** Returns a string representation of the array. */664    toString(): string;665 666    /** Returns the primitive value of the specified object. */667    valueOf(): BigUint64Array<TArrayBuffer>;668 669    /** Yields each value in the array. */670    values(): ArrayIterator<bigint>;671 672    [Symbol.iterator](): ArrayIterator<bigint>;673 674    readonly [Symbol.toStringTag]: "BigUint64Array";675 676    [index: number]: bigint;677}678interface BigUint64ArrayConstructor {679    readonly prototype: BigUint64Array<ArrayBufferLike>;680    new (length?: number): BigUint64Array<ArrayBuffer>;681    new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;682    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;683    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<ArrayBuffer>;684    new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;685 686    /** The size in bytes of each element in the array. */687    readonly BYTES_PER_ELEMENT: number;688 689    /**690     * Returns a new array from a set of elements.691     * @param items A set of elements to include in the new array object.692     */693    of(...items: bigint[]): BigUint64Array<ArrayBuffer>;694 695    /**696     * Creates an array from an array-like or iterable object.697     * @param arrayLike An array-like object to convert to an array.698     */699    from(arrayLike: ArrayLike<bigint>): BigUint64Array<ArrayBuffer>;700 701    /**702     * Creates an array from an array-like or iterable object.703     * @param arrayLike An array-like object to convert to an array.704     * @param mapfn A mapping function to call on every element of the array.705     * @param thisArg Value of 'this' used to invoke the mapfn.706     */707    from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;708 709    /**710     * Creates an array from an array-like or iterable object.711     * @param elements An iterable object to convert to an array.712     */713    from(elements: Iterable<bigint>): BigUint64Array<ArrayBuffer>;714 715    /**716     * Creates an array from an array-like or iterable object.717     * @param elements An iterable object to convert to an array.718     * @param mapfn A mapping function to call on every element of the array.719     * @param thisArg Value of 'this' used to invoke the mapfn.720     */721    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;722}723declare var BigUint64Array: BigUint64ArrayConstructor;724 725interface DataView<TArrayBuffer extends ArrayBufferLike> {726    /**727     * Gets the BigInt64 value at the specified byte offset from the start of the view. There is728     * no alignment constraint; multi-byte values may be fetched from any offset.729     * @param byteOffset The place in the buffer at which the value should be retrieved.730     * @param littleEndian If false or undefined, a big-endian value should be read.731     */732    getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;733 734    /**735     * Gets the BigUint64 value at the specified byte offset from the start of the view. There is736     * no alignment constraint; multi-byte values may be fetched from any offset.737     * @param byteOffset The place in the buffer at which the value should be retrieved.738     * @param littleEndian If false or undefined, a big-endian value should be read.739     */740    getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;741 742    /**743     * Stores a BigInt64 value at the specified byte offset from the start of the view.744     * @param byteOffset The place in the buffer at which the value should be set.745     * @param value The value to set.746     * @param littleEndian If false or undefined, a big-endian value should be written.747     */748    setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;749 750    /**751     * Stores a BigUint64 value at the specified byte offset from the start of the view.752     * @param byteOffset The place in the buffer at which the value should be set.753     * @param value The value to set.754     * @param littleEndian If false or undefined, a big-endian value should be written.755     */756    setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;757}758 759declare namespace Intl {760    interface NumberFormat {761        format(value: number | bigint): string;762    }763}764