// Automatically generated from TypeScript type definitions provided by // DefinitelyTyped (https://github.com/DefinitelyTyped/DefinitelyTyped), // which is licensed under the MIT license; see file DefinitelyTyped-LICENSE // in parent directory. // Type definitions for Node.js 10.5.x // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Parambir Singh // Christian Vaagland Tellnes // Wilco Bakker // Nicolas Voigt // Chigozirim C. // Flarna // Mariusz Wiktorczyk // wwwy3y3 // Deividas Bakanas // Kelvin Jin // Alvis HT Tang // Sebastian Silbermann // Hannes Magnusson // Alberto Schiabel // Klaus Meinhardt // Huw // Nicolas Even // Bruno Scheufler // Mohsen Azimi // Hoàng Văn Khải // Alexander T. // Lishude // Andrew Makarov // Zane Hannan AU // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * @externs * @fileoverview Definitions for module "tty" */ var tty = {}; var net = require("net"); /** * @param {number} fd * @return {boolean} */ tty.isatty = function(fd) {}; /** * @interface * @extends {net.Socket} */ tty.ReadStream = function() {}; /** * @type {boolean} */ tty.ReadStream.prototype.isRaw; /** * @param {boolean} mode * @return {void} */ tty.ReadStream.prototype.setRawMode = function(mode) {}; /** * @type {boolean} */ tty.ReadStream.prototype.isTTY; /** * @interface * @extends {net.Socket} */ tty.WriteStream = function() {}; /** * @type {number} */ tty.WriteStream.prototype.columns; /** * @type {number} */ tty.WriteStream.prototype.rows; /** * @type {boolean} */ tty.WriteStream.prototype.isTTY; module.exports.isatty = tty.isatty; module.exports.ReadStream = tty.ReadStream; module.exports.WriteStream = tty.WriteStream; /** * @param {boolean} mode * @return {void} */ tty.setRawMode = function(mode) {}; /** * @param {string} path * @param {Array=} args * @return {Array<*>} */ tty.open = function(path, args) {}; /** * @param {*} fd * @param {number} row * @param {number} col * @return {*} */ tty.setWindowSize = function(fd, row, col) {}; /** * @param {*} fd * @return {Array} */ tty.getWindowSize = function(fd) {}; module.exports.setRawMode = tty.setRawMode; module.exports.open = tty.open; module.exports.setWindowSize = tty.setWindowSize; module.exports.getWindowSize = tty.getWindowSize;