Checks if a string is a valid ENS name. It does not check if the ENS name is currently registered or resolves to an address - it only validates the string format.
isValidENSName("thirdweb.eth"); // trueisValidENSName("foo.bar.com"); // trueisValidENSName("xyz"); // false
function isValidENSName(name: string): boolean;
The ENS name to check.
let name: string;
let returnType: boolean;