import { Readable } from 'stream'; /** * Type union of all supported stream types. * - Native Node.js Readable streams * - Legacy NodeJS.ReadableStream (pre-Streams2 event emitters) * - WHATWG/Web-standard ReadableStream */ export type AnyReadable = Readable | NodeJS.ReadableStream | ReadableStream; /** * Helper class for converting various stream flavors into a Node.js Readable. */ export declare class StreamHelper { /** * Normalize any supported stream into a Node.js `stream.Readable` instance. * * @param input - The source stream, which may be: * 1. A modern Node.js `Readable` (returned through as-is). * 2. A WHATWG/Web-standard `ReadableStream` (converted with `Readable.fromWeb`). * 3. A legacy `NodeJS.ReadableStream` that only emits `data`/`end` (wrapped). * @returns A fully-functional Node.js `stream.Readable` that you can pipe, async-iterate, * etc., regardless of the original stream type. */ static toNodeReadable(input: AnyReadable): Readable; }