namehash.d.ts 611 B

1234567891011121314151617181920
  1. /**
  2. * Returns the ENS %%name%% normalized.
  3. */
  4. export declare function ensNormalize(name: string): string;
  5. /**
  6. * Returns ``true`` if %%name%% is a valid ENS name.
  7. */
  8. export declare function isValidName(name: string): name is string;
  9. /**
  10. * Returns the [[link-namehash]] for %%name%%.
  11. */
  12. export 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. */
  19. export declare function dnsEncode(name: string, _maxLength?: number): string;
  20. //# sourceMappingURL=namehash.d.ts.map