/** * @file Safe references to `Array`, typed-array, `ArrayBuffer`, `DataView`, * `Atomics`, and shared iterator-prototype primordials. `Array.fromAsync` and * `Array.prototype.with` are ES2024 / ES2023; the primordial captures the * live reference at module load so consumers never see a tampered global. */ export declare const ArrayCtor: ArrayConstructor; export declare const ArrayBufferCtor: ArrayBufferConstructor; export declare const DataViewCtor: DataViewConstructor; export declare const Float32ArrayCtor: Float32ArrayConstructor; export declare const Float64ArrayCtor: Float64ArrayConstructor; export declare const Int8ArrayCtor: Int8ArrayConstructor; export declare const Int16ArrayCtor: Int16ArrayConstructor; export declare const Int32ArrayCtor: Int32ArrayConstructor; export declare const Uint8ArrayCtor: Uint8ArrayConstructor; export declare const Uint8ClampedArrayCtor: Uint8ClampedArrayConstructor; export declare const Uint16ArrayCtor: Uint16ArrayConstructor; export declare const Uint32ArrayCtor: Uint32ArrayConstructor; export declare const ArrayFrom: { (arrayLike: ArrayLike): T[]; (arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; (iterable: Iterable | ArrayLike): T[]; (iterable: Iterable | ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }; export type ArrayFromAsync = (source: AsyncIterable | Iterable> | ArrayLike>) => Promise; export declare const ArrayFromAsync: ArrayFromAsync | undefined; export declare const ArrayIsArray: (arg: any) => arg is any[]; export declare const ArrayOf: (...items: T[]) => T[]; export declare const ArrayBufferIsView: (arg: any) => arg is ArrayBufferView; export declare const AtomicsWait: { (typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out"; (typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out"; }; export declare const ArrayPrototypeAt: (self: unknown, index: number) => any; export declare const ArrayPrototypeConcat: (self: T[], ...items: Array) => T[]; export declare const ArrayPrototypeCopyWithin: (self: unknown, target: number, start: number, end?: number | undefined) => any[]; export declare const ArrayPrototypeEntries: (self: unknown) => ArrayIterator<[number, any]>; export declare const ArrayPrototypeEvery: (self: unknown, predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean; export declare const ArrayPrototypeFill: (self: unknown, value: any, start?: number | undefined, end?: number | undefined) => any[]; export declare const ArrayPrototypeFilter: (self: unknown, predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => any[]; export declare const ArrayPrototypeFind: (self: unknown, predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any) => any; export declare const ArrayPrototypeFindIndex: (self: unknown, predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any) => number; export declare const ArrayPrototypeFindLast: (self: unknown, predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => any; export declare const ArrayPrototypeFindLastIndex: (self: unknown, predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => number; export declare const ArrayPrototypeFlat: (self: A, depth?: D | undefined) => FlatArray[]; export declare const ArrayPrototypeFlatMap: (self: unknown, callback: (this: This, value: any, index: number, array: any[]) => U | readonly U[], thisArg?: This | undefined) => U[]; export declare const ArrayPrototypeForEach: (self: unknown, callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any) => void; export declare const ArrayPrototypeIncludes: (self: unknown, searchElement: any, fromIndex?: number | undefined) => boolean; export declare const ArrayPrototypeIndexOf: (self: unknown, searchElement: any, fromIndex?: number | undefined) => number; export declare const ArrayPrototypeJoin: (self: unknown, separator?: string | undefined) => string; export declare const ArrayPrototypeKeys: (self: unknown) => ArrayIterator; export declare const ArrayPrototypeLastIndexOf: (self: unknown, searchElement: any, fromIndex?: number | undefined) => number; export declare const ArrayPrototypeMap: (self: unknown, callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]; export declare const ArrayPrototypePop: (self: unknown) => any; export declare const ArrayPrototypePush: (self: T[], ...items: T[]) => number; export declare const ArrayPrototypeReduce: (self: unknown, callbackfn: (previousValue: unknown, currentValue: any, currentIndex: number, array: any[]) => unknown, initialValue: unknown) => unknown; export declare const ArrayPrototypeReduceRight: (self: unknown, callbackfn: (previousValue: unknown, currentValue: any, currentIndex: number, array: any[]) => unknown, initialValue: unknown) => unknown; export declare const ArrayPrototypeReverse: (self: unknown) => any[]; export declare const ArrayPrototypeShift: (self: unknown) => any; export declare const ArrayPrototypeSlice: (self: unknown, start?: number | undefined, end?: number | undefined) => any[]; export declare const ArrayPrototypeSome: (self: unknown, predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any) => boolean; export declare const ArrayPrototypeSort: (self: unknown, compareFn?: ((a: any, b: any) => number) | undefined) => any[]; export declare const ArrayPrototypeSplice: (self: T[], start: number, deleteCount?: number | undefined, ...items: T[]) => T[]; export declare const ArrayPrototypeToLocaleString: (self: unknown, locales: string | string[], options?: (Intl.NumberFormatOptions & Intl.DateTimeFormatOptions) | undefined) => string; export declare const ArrayPrototypeToReversed: ((self: unknown) => any[]) | typeof arrayToReversedFallback; export declare const ArrayPrototypeToSorted: ((self: unknown, compareFn?: ((a: any, b: any) => number) | undefined) => any[]) | typeof arrayToSortedFallback; export declare const ArrayPrototypeToSpliced: (self: T[], start: number, deleteCount?: number | undefined, ...items: T[]) => T[]; export declare const ArrayPrototypeToString: (self: unknown) => string; export declare const ArrayPrototypeUnshift: (self: T[], ...items: T[]) => number; export declare const ArrayPrototypeValues: (self: unknown) => ArrayIterator; export declare const ArrayPrototypeWith: (self: T[], index: number, value: T) => T[]; export declare function arrayToReversedFallback(self: T[]): T[]; export declare function arrayToSortedFallback(self: T[], comparator?: ((left: T, right: T) => number) | undefined): T[]; export declare function arrayToSplicedFallback(self: T[], start: number, deleteCount?: number | undefined, ...items: T[]): T[]; export declare function arrayWithFallback(self: T[], index: number, value: T): T[]; export declare function normalizeArrayStart(index: number, length: number): number; export declare const IteratorPrototypeNext: (self: Iterator) => IteratorResult; export declare const IteratorPrototypeReturn: ((self: Iterator, value?: unknown) => IteratorResult) | undefined;