// 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 "punycode" */ var punycode = {}; /** * @param {string} string * @return {string} */ punycode.decode = function(string) {}; /** * @param {string} string * @return {string} */ punycode.encode = function(string) {}; /** * @param {string} domain * @return {string} */ punycode.toUnicode = function(domain) {}; /** * @param {string} domain * @return {string} */ punycode.toASCII = function(domain) {}; /** * @type {punycode.ucs2} */ punycode.ucs2; /** * @interface */ function ucs2() {} /** * @param {string} string * @return {Array} */ ucs2.prototype.decode = function(string) {}; /** * @param {Array} codePoints * @return {string} */ ucs2.prototype.encode = function(codePoints) {}; /** * @type {*} */ punycode.version; module.exports.decode = punycode.decode; module.exports.encode = punycode.encode; module.exports.toUnicode = punycode.toUnicode; module.exports.toASCII = punycode.toASCII; module.exports.ucs2 = punycode.ucs2; module.exports.version = punycode.version;