/** * @file Safe references to `Promise` static methods, prototype methods, and the * ES2024 `withResolvers` factory. Static methods are bound to `Promise` so * callers can pass them around as standalone functions (`PromiseAll(arr)` * instead of `Promise.all(arr)`); the `this`-receiver capture matches Node's * primordials convention. */ export declare const PromiseCtor: PromiseConstructor; export declare const PromiseAll: { (values: Iterable>): Promise[]>; (values: T): Promise<{ -readonly [P in keyof T]: Awaited; }>; }; export declare const PromiseAllSettled: { (values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult>; }>; (values: Iterable>): Promise>[]>; }; export declare const PromiseAny: { (values: T): Promise>; (values: Iterable>): Promise>; }; export declare const PromiseRace: { (values: Iterable>): Promise>; (values: T): Promise>; }; export declare const PromiseReject: (reason?: any) => Promise; export declare const PromiseResolve: { (): Promise; (value: T): Promise>; (value: T | PromiseLike): Promise>; }; export declare const PromiseWithResolvers: typeof Promise.withResolvers | undefined; export declare const PromisePrototypeCatch: (self: unknown, onrejected?: ((reason: any) => TResult | PromiseLike) | null | undefined) => Promise; export declare const PromisePrototypeFinally: (self: unknown, onfinally?: (() => void) | null | undefined) => Promise; export declare const PromisePrototypeThen: (self: unknown, onfulfilled?: ((value: any) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise;