///
import { BufferLike } from '../interfaces';
import { Readable, ReadableOptions } from 'stream';
declare type SourceIterator = Iterator;
export declare class IterableReadable extends Readable {
private _pulling;
private _objectMode;
private _iterator;
constructor(source: Iterable, options?: ReadableOptions);
_read(size: number): void;
_destroy(err: Error | null, cb: (err: Error | null) => void): void;
_pull(it: SourceIterator, size: number): boolean;
}
export declare function toNodeStream(source: Iterable): IterableReadable;
export declare function toNodeStream(source: Iterable, options: ReadableOptions & {
objectMode: true;
}): IterableReadable;
export declare function toNodeStream(source: Iterable, options: ReadableOptions & {
objectMode: false;
}): IterableReadable;
/**
* @ignore
*/
export declare function toNodeStreamProto(this: Iterable): IterableReadable;
export declare function toNodeStreamProto(this: Iterable, options: ReadableOptions | {
objectMode: true;
}): IterableReadable;
export declare function toNodeStreamProto(this: Iterable, options: ReadableOptions | {
objectMode: false;
}): IterableReadable;
declare module '../iterable/iterablex' {
interface IterableX {
toNodeStream: typeof toNodeStreamProto;
}
}
export {};