export interface AsyncCollection extends AsyncIterable { /** * Resolves the generator into a Promise that yields an array of all its values. */ promise(): Promise; } export declare function toCollection(generator: () => AsyncGenerator): AsyncCollection;