import BaseError from './BaseError'; declare type W = T extends PromiseLike ? R : T; declare type E = T extends void ? undefined : T; interface Options { name?: undefined | string; code?: undefined | string; message?: undefined | string; innerErrors: readonly Error[]; } export default class AggregateError extends BaseError { static catch(actions: readonly (() => T)[]): { values: T[]; } | { error: AggregateError; }; static aggregate(actions: readonly (() => T)[]): T[]; static parallel(promises: readonly (T | (() => T))[]): Promise>[]>; readonly innerErrors: readonly Error[]; constructor(innerErrors: readonly Error[]); constructor(message: string, innerErrors: readonly Error[]); constructor(options: Options); formatCause(): undefined | string; } export {};