1 | // Type definitions for punycode 2.1
|
2 | // Project: https://mths.be/punycode
|
3 | // Definitions by: Dmitry Guketlev <https://github.com/yavanosta>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 |
|
6 | export function decode(input: string): string;
|
7 | export function encode(input: string): string;
|
8 | export function toUnicode(input: string): string;
|
9 | export function toASCII(input: string): string;
|
10 |
|
11 | export namespace ucs2 {
|
12 | function decode(string: string): number[];
|
13 | function encode(array: ReadonlyArray<number>): string;
|
14 | }
|
15 |
|
16 | export const version: string;
|