method Interface.prototype.onimport { Interface } from "https://dotland.deno.dev/std@0.177.0/node/readline.ts"; on(event: string, listener: (...args: any[]) => void): thison(event: "close", listener: () => void): thison(event: "line", listener: (input: string) => void): thison(event: "pause", listener: () => void): thison(event: "resume", listener: () => void): thison(event: "SIGCONT", listener: () => void): thison(event: "SIGINT", listener: () => void): thison(event: "SIGTSTP", listener: () => void): thison(event: "history", listener: (history: string[]) => void): thisParametersevent: stringlistener: (...args: any[]) => voidReturnsthisParametersevent: "close"listener: () => voidReturnsthisParametersevent: "line"listener: (input: string) => voidReturnsthisParametersevent: "pause"listener: () => voidReturnsthisParametersevent: "resume"listener: () => voidReturnsthisParametersevent: "SIGCONT"listener: () => voidReturnsthisParametersevent: "SIGINT"listener: () => voidReturnsthisParametersevent: "SIGTSTP"listener: () => voidReturnsthisParametersevent: "history"listener: (history: string[]) => voidReturnsthis