/**
 * 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<T>(source: AsyncIterable<T>): Promise<T[]>;
