/** * Resolves a key value store of Promises to values * @param a key value store with only promises or an array of promises as values * @return a Promise which resolves to a tuple of type [null | Array, ResolvedInputObj] */ declare const zip: (promiseObj: { [key: string]: Promise | Promise[]; }, onlyPromises?: boolean) => Promise<[{ [key: string]: any; }, { [key: string]: any; }]>; /** * Resolves a key value store of Promises * @param a promise or an array of promises to be resolved * @return a key value store of the same shape as the input. Each value is a resolved tuple of [null, data] * @note use _valid to check if the object was unzippable */ export declare type IvalidRet = { [key: string]: any; _valid?: boolean; }; declare const unzip: (promiseObj: { [key: string]: Promise | Promise[]; }) => Promise<{ [key: string]: any; _valid?: boolean; }>; export { zip, unzip };