export declare type IpromiseObj = { [key: string]: Promise | Array>; }; /** * resolves all promises given * @param an array of Promises * @return a Promise that resolves to a tuple */ export declare type IhandleMultiplePromises = (promises: Array>) => Promise<[null | Error, any]>; declare const handleMultiplePromises: IhandleMultiplePromises; /** * resolves a single given promise * @param data of any type * @return a Promise that resolves to a tuple */ export declare type IhandleSinglePromise = (promise: Promise | IpromiseObj) => Promise<[null | Error, any]>; declare const handleSinglePromise: IhandleSinglePromise; /** * resolves an array of promises or pure values * @param an array of any values or promises * @return a Promise that resolves to a tuple of [iterableErrors, Iterable] */ export declare type IhandleMixedPromises = (promises: Array) => Promise<[null | Error, any]>; declare const handleMixedPromises: IhandleMixedPromises; export { handleSinglePromise, handleMixedPromises, handleMultiplePromises };