type InferErrors = T extends TypedPromise ? E : never; export default class TypedPromise extends Promise { constructor(executor: (resolve: (value: T | PromiseLike) => void, reject: (reason: E) => void) => void); catch(onrejected?: ((reason: E) => TResult | PromiseLike) | null | undefined): TypedPromise; static resolve: { (): TypedPromise; (value: V): TypedPromise, never>; }; static reject(reason: E): TypedPromise; static all(values: T): TypedPromise<{ -readonly [P in keyof T]: Awaited; }, InferErrors>; static race | any)[]>(values: T): TypedPromise ? U : T[number] extends PromiseLike ? U : Awaited, InferErrors>; } export {}; //# sourceMappingURL=TypedPromise.d.ts.map