/**
* Up: \u001b[{n}A
Down: \u001b[{n}B
Right: \u001b[{n}C
Left: \u001b[{n}D
*/
///
declare enum Direction {
UP = "A",
DOWN = "B",
RIGHT = "C",
LEFT = "D"
}
export declare class CommandLine {
readonly stream: NodeJS.WritableStream;
constructor(stream?: NodeJS.WritableStream);
move(chars: number, dir: Direction): this;
up(chars?: number): this;
down(chars?: number): this;
left(chars?: number): this;
right(chars?: number): this;
write(text: string | Buffer): this;
newLine(): this;
/**
* clears from cursor until end of screen
*/
clearToEnd(): this;
/**
* clears from cursor to beginning of screen
*/
clearToBeginn(): this;
clearScreen(): this;
/**
* clears from cursor to end of line
*/
clearCurrentLineToEnd(): this;
/**
* clears from cursor to start of line
*/
clearCurrentLineToBeginn(): this;
clearCurrentLine(): this;
setColumn(n: number): this;
setPosition(n: number, m: number): this;
savePosition(): this;
restorePosition(): this;
}
/**
* Returns a singleton instance of {@code CommandLine} which writes to process.stdout
*/
export declare function cli(): CommandLine;
export {};
//# sourceMappingURL=command-line.class.d.ts.map