1 | declare module "tty" {
|
2 | import * as net from "net";
|
3 |
|
4 | function isatty(fd: number): boolean;
|
5 | class ReadStream extends net.Socket {
|
6 | constructor(fd: number, options?: net.SocketConstructorOpts);
|
7 | isRaw: boolean;
|
8 | setRawMode(mode: boolean): this;
|
9 | isTTY: boolean;
|
10 | }
|
11 | class WriteStream extends net.Socket {
|
12 | constructor(fd: number);
|
13 | columns: number;
|
14 | rows: number;
|
15 | isTTY: boolean;
|
16 | }
|
17 | }
|