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