import { EnsResolver, AbstractProvider, Signer } from 'ethers'; import { ENSNameWrapper, ENSRegistry, ENSResolver } from './typechain'; import { NetIdType } from './networkConfig'; export declare function encodedLabelToLabelhash(label: string): string | null; export declare function labelhash(label: string): string; export declare function makeLabelNodeAndParent(name: string): { label: string; labelhash: string; parentNode: string; }; export declare const EnsContracts: { [key: NetIdType]: { ensRegistry: string; ensPublicResolver: string; ensNameWrapper: string; }; }; /** * ENSUtils to manage on-chain registered relayers */ export declare class ENSUtils { ENSRegistry?: ENSRegistry; ENSResolver?: ENSResolver; ENSNameWrapper?: ENSNameWrapper; provider: AbstractProvider; constructor(provider: AbstractProvider); getContracts(): Promise; getOwner(name: string): Promise; unwrap(signer: Signer, name: string): Promise; setSubnodeRecord(signer: Signer, name: string): Promise; setText(signer: Signer, name: string, key: string, value: string): Promise; getResolver(name: string): Promise; getText(name: string, key: string): Promise; }