function clearLineclearLine(stream: WritableStream,dir: Direction,callback?: () => void,): booleanDeprecatedThe readline.clearLine() method clears current line of given TTY stream in a specified direction identified by dir. Parametersstream: WritableStreamdir: Directionoptionalcallback: () => voidInvoked once the operation completes. Return Typebooleanfalse if stream wishes for the calling code to wait for the 'drain' event to be emitted before continuing to write additional data; otherwise true.