2023-03-04 04:25:07 +03:00
|
|
|
/**
|
|
|
|
* Returns the ENS %%name%% normalized.
|
|
|
|
*/
|
|
|
|
export declare function ensNormalize(name: string): string;
|
|
|
|
/**
|
|
|
|
* Returns ``true`` if %%name%% is a valid ENS name.
|
|
|
|
*/
|
|
|
|
export declare function isValidName(name: string): name is string;
|
|
|
|
/**
|
|
|
|
* Returns the [[link-namehash]] for %%name%%.
|
|
|
|
*/
|
|
|
|
export declare function namehash(name: string): string;
|
|
|
|
/**
|
|
|
|
* Returns the DNS encoded %%name%%.
|
|
|
|
*
|
|
|
|
* This is used for various parts of ENS name resolution, such
|
|
|
|
* as the wildcard resolution.
|
|
|
|
*/
|
2024-02-02 11:25:03 +03:00
|
|
|
export declare function dnsEncode(name: string, _maxLength?: number): string;
|
2023-04-27 15:19:55 +03:00
|
|
|
//# sourceMappingURL=namehash.d.ts.map
|