/** * Ambient augmentations (no imports — must stay a script so these merge into global scope). * Runtime polyfills live in {@link ./polyfill.ts}; target lib is ES2020. */ interface Array { findLast(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T | undefined } interface PromiseConstructor { any(promises: Array>): Promise } interface AggregateError extends Error { errors: any[] } declare const AggregateError: { prototype: AggregateError new (errors: any[], message?: string): AggregateError }