/** * Convert an evented, pause/resume-capable readable into an AsyncIterable without * destroying/ending the underlying stream when iteration stops early. * * Why: * - Some Node-style readables (and stream-like objects) implement AsyncIterable * by destroying the stream when the consumer breaks early. * - In some scenarios (e.g. entry streaming), we want best-effort cleanup * without implicitly destroying the underlying stream. */ export interface EventedReadableLike { on?(event: string, listener: (chunk: T) => void): any; off?(event: string, listener: (chunk: T) => void): any; removeListener?(event: string, listener: (chunk: T) => void): any; pause?(): any; resume?(): any; } export declare function eventedReadableToAsyncIterableNoDestroy(stream: EventedReadableLike): AsyncIterable;