type Promise = typeof import("dojo/promise/Promise"); /** * Takes multiple promises and returns a new promise that is fulfilled * when all promises have been resolved or one has been rejected. * @param objectOrArray The promise will be fulfilled with a list of results if invoked with an * array, or an object of results when passed an object (using the same * keys). If passed neither an object or array it is resolved with an * undefined value. */ declare function all(array: DojoJS.Thenable[]): Promise; declare function all(object: { [name: string]: DojoJS.Thenable; }): Promise<{ [name: string]: T; }>; declare function all(array: DojoJS.Thenable[]): Promise; declare function all(object: { [name: string]: DojoJS.Thenable; }): Promise<{ [name: string]: any; }>; export = all; //# sourceMappingURL=all.d.ts.map