import { EventEmitter } from 'events' ; import type * as stream from 'stream' ; import type { BufferEncoding , Callback } from '../../_internal/types' ; export class Readable extends EventEmitter implements stream . Readable { readonly readableEncoding : BufferEncoding | null = null ; readonly readableEnded : boolean = true ; readonly readableFlowing : boolean | null = false ; readonly readableHighWaterMark : number = 0 ; readonly readableLength : number = 0 ; readonly readableObjectMode : boolean = false ; readable : boolean = false ; destroyed : boolean = false ; static from ( _iterable , options ? ) { return new Readable ( options ) ; } constructor ( _opts ? ) { super ( ) ; } _read ( _size ) { } read ( _size ? ) { } setEncoding ( _encoding ) { return this ; } pause ( ) { return this ; } resume ( ) { return this ; } isPaused ( ) { return true ; } unpipe ( _destination ? ) { return this ; } unshift ( _chunk , _encoding ? ) { } wrap ( _oldStream ) { return this ; } push ( _chunk , _encoding ? ) { return false ; } _destroy ( _error ? , _callback ? ) { this . removeAllListeners ( ) ; } destroy ( error ? ) { this . destroyed = true ; return this . _destroy ( error ) ; } pipe < T > ( _destenition , _options ? ) { return { } as T ; } async * [ Symbol . asyncIterator ] ( ) { } }