_Interface

constructor(input: ReadableStream, output: WritableStream = definedExternally, completer: Completer = definedExternally, terminal: Boolean = definedExternally)(source)
constructor(input: ReadableStream, output: WritableStream = definedExternally, completer: AsyncCompleter = definedExternally, terminal: Boolean = definedExternally)(source)
constructor(options: ReadLineOptions)(source)

NOTE: According to the documentation:

Instances of the readline.Interface class are constructed using the readline.createInterface() method.

See also

https

://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor