export declare namespace AsyncIterUtils { function map(iterable: AsyncIterable, mapItem: (item: T0) => T1): AsyncIterable; function mapWithReturn(iterable: AsyncIterable, mapItem: (item: T0) => T1, mapReturn: (ret: R0) => R1): AsyncGenerator; function filter(iterable: AsyncIterable, filterItem: (item: T) => boolean): AsyncIterable; function toArray(iterable: AsyncIterable): Promise; function fromArray(arr: T[]): AsyncIterable; function fromArrayWithReturn(arr: T[], returnValue: R): AsyncGenerator; function toArrayWithReturn(iterable: AsyncIterable): Promise<[T[], ret: R]>; function drainUntilReturn(iterable: AsyncIterable): Promise; } /** * Namespace for extensions to AsyncIterUtils that are not generally useful enough to be in the main namespace, but are still worth keeping around. */ export declare namespace AsyncIterUtilsExt { function splitLines(stream: AsyncIterable): AsyncIterable; } //# sourceMappingURL=asyncIterableUtils.d.ts.map