_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