UNPKG

611 BTypeScriptView Raw
1/**
2 * Returns the ENS %%name%% normalized.
3 */
4export declare function ensNormalize(name: string): string;
5/**
6 * Returns ``true`` if %%name%% is a valid ENS name.
7 */
8export declare function isValidName(name: string): name is string;
9/**
10 * Returns the [[link-namehash]] for %%name%%.
11 */
12export declare function namehash(name: string): string;
13/**
14 * Returns the DNS encoded %%name%%.
15 *
16 * This is used for various parts of ENS name resolution, such
17 * as the wildcard resolution.
18 */
19export declare function dnsEncode(name: string, _maxLength?: number): string;
20//# sourceMappingURL=namehash.d.ts.map
\No newline at end of file