/// import * as stream from "stream"; import { IAsyncReader } from "./IAsyncReader.js"; /** * Read binary data from a Readable with simple async methods */ export declare class AsyncReader extends IAsyncReader { readable: stream.Readable; listener: Function; position: number; atEnd: boolean; constructor(readable: stream.Readable); isAtEnd(): boolean; getPosition(): number; /** * is called when data is ready to be read */ _readableCallback(): void; /** * is called when end of stream is reached */ _endCallback(): void; /** Closes the stream, after which no further reading is allowed */ close(): Promise; /** Returns a string containing len bytes * @param len Number of bytes to read */ read(len: any): Promise; }