1 declare module 'punycode' {
2 function ucs2decode(string:string):Array<number>;
3 function ucs2encode(array:Array<number>):string;
4 function decode(string:string):string;
5 function encode(string:string):string;
6 function toASCII(string:string):string;
7 function toUnicode(string:string):string;
12 'decode': typeof ucs2decode;
13 'encode': typeof ucs2encode;
15 'decode': typeof decode;
16 'encode': typeof encode;
17 'toASCII': typeof toASCII;
18 'toUnicode': typeof toUnicode;
21 const punycode:Punycode;
23 export default punycode;