1 | /**
|
2 | * @deprecated since v7.0.0
|
3 | * The version of the punycode module bundled in Node.js is being deprecated.
|
4 | * In a future major version of Node.js this module will be removed.
|
5 | * Users currently depending on the punycode module should switch to using
|
6 | * the userland-provided Punycode.js module instead.
|
7 | */
|
8 | declare module 'punycode' {
|
9 | /**
|
10 | * @deprecated since v7.0.0
|
11 | * The version of the punycode module bundled in Node.js is being deprecated.
|
12 | * In a future major version of Node.js this module will be removed.
|
13 | * Users currently depending on the punycode module should switch to using
|
14 | * the userland-provided Punycode.js module instead.
|
15 | */
|
16 | function decode(string: string): string;
|
17 | /**
|
18 | * @deprecated since v7.0.0
|
19 | * The version of the punycode module bundled in Node.js is being deprecated.
|
20 | * In a future major version of Node.js this module will be removed.
|
21 | * Users currently depending on the punycode module should switch to using
|
22 | * the userland-provided Punycode.js module instead.
|
23 | */
|
24 | function encode(string: string): string;
|
25 | /**
|
26 | * @deprecated since v7.0.0
|
27 | * The version of the punycode module bundled in Node.js is being deprecated.
|
28 | * In a future major version of Node.js this module will be removed.
|
29 | * Users currently depending on the punycode module should switch to using
|
30 | * the userland-provided Punycode.js module instead.
|
31 | */
|
32 | function toUnicode(domain: string): string;
|
33 | /**
|
34 | * @deprecated since v7.0.0
|
35 | * The version of the punycode module bundled in Node.js is being deprecated.
|
36 | * In a future major version of Node.js this module will be removed.
|
37 | * Users currently depending on the punycode module should switch to using
|
38 | * the userland-provided Punycode.js module instead.
|
39 | */
|
40 | function toASCII(domain: string): string;
|
41 | /**
|
42 | * @deprecated since v7.0.0
|
43 | * The version of the punycode module bundled in Node.js is being deprecated.
|
44 | * In a future major version of Node.js this module will be removed.
|
45 | * Users currently depending on the punycode module should switch to using
|
46 | * the userland-provided Punycode.js module instead.
|
47 | */
|
48 | const ucs2: ucs2;
|
49 | interface ucs2 {
|
50 | /**
|
51 | * @deprecated since v7.0.0
|
52 | * The version of the punycode module bundled in Node.js is being deprecated.
|
53 | * In a future major version of Node.js this module will be removed.
|
54 | * Users currently depending on the punycode module should switch to using
|
55 | * the userland-provided Punycode.js module instead.
|
56 | */
|
57 | decode(string: string): number[];
|
58 | /**
|
59 | * @deprecated since v7.0.0
|
60 | * The version of the punycode module bundled in Node.js is being deprecated.
|
61 | * In a future major version of Node.js this module will be removed.
|
62 | * Users currently depending on the punycode module should switch to using
|
63 | * the userland-provided Punycode.js module instead.
|
64 | */
|
65 | encode(codePoints: ReadonlyArray<number>): string;
|
66 | }
|
67 | /**
|
68 | * @deprecated since v7.0.0
|
69 | * The version of the punycode module bundled in Node.js is being deprecated.
|
70 | * In a future major version of Node.js this module will be removed.
|
71 | * Users currently depending on the punycode module should switch to using
|
72 | * the userland-provided Punycode.js module instead.
|
73 | */
|
74 | const version: string;
|
75 | }
|
76 | declare module 'node:punycode' {
|
77 | export * from 'punycode';
|
78 | }
|