/** * Turn an async iterable to a promise of an array. The promise will resolve * only when the async iterator returns * * @param source an async interable */ export declare function toArray(source: AsyncIterable): Promise;