/** * An AsyncGenerator that can also be awaited directly. * - `for await (const p of gen)` iterates items one at a time * - `await gen` collects all items into an array */ export type CollectableAsyncGenerator = AsyncGenerator & PromiseLike; /** Wrap an async generator to make it awaitable (collects all items on await). */ export declare function collectable(gen: AsyncGenerator): CollectableAsyncGenerator; //# sourceMappingURL=util.d.ts.map