method ReadStream.prototype.onimport { ReadStream } from "https://dotland.deno.dev/std@0.177.0/node/fs.ts"; on(event: "close", listener: () => void): thison(event: "data", listener: (chunk: Buffer | string) => void): thison(event: "end", listener: () => void): thison(event: "error", listener: (err: Error) => void): thison(event: "open", listener: (fd: number) => void): thison(event: "pause", listener: () => void): thison(event: "readable", listener: () => void): thison(event: "ready", listener: () => void): thison(event: "resume", listener: () => void): thison(event: string | symbol, listener: (...args: any[]) => void): thisParametersevent: "close"listener: () => voidReturnsthisParametersevent: "data"listener: (chunk: Buffer | string) => voidReturnsthisParametersevent: "end"listener: () => voidReturnsthisParametersevent: "error"listener: (err: Error) => voidReturnsthisParametersevent: "open"listener: (fd: number) => voidReturnsthisParametersevent: "pause"listener: () => voidReturnsthisParametersevent: "readable"listener: () => voidReturnsthisParametersevent: "ready"listener: () => voidReturnsthisParametersevent: "resume"listener: () => voidReturnsthisParametersevent: string | symbollistener: (...args: any[]) => voidReturnsthis