UNPKG

693 BTypeScriptView Raw
1/// <reference types="node" />
2import { ReadableOptions } from 'stream';
3import { AsyncIterableReadable } from '../../asynciterable/tonodestream';
4import { BufferLike, UnaryFunction } from '../../interfaces';
5export declare function toNodeStream<TSource>(): UnaryFunction<AsyncIterable<TSource>, AsyncIterableReadable<TSource>>;
6export declare function toNodeStream<TSource>(options: ReadableOptions & {
7 objectMode: true;
8}): UnaryFunction<AsyncIterable<TSource>, AsyncIterableReadable<TSource>>;
9export declare function toNodeStream<TSource extends BufferLike>(options: ReadableOptions & {
10 objectMode: false;
11}): UnaryFunction<AsyncIterable<TSource>, AsyncIterableReadable<TSource>>;