import { c as Address } from "../../abi-Bjd7pZee.mjs"; //#region extensions/crypto/src/lib/ens-resolver.d.ts interface ResolvedAddress { /** Checksummed 0x address */ address: Address; /** Original input (may be ENS name, address, etc.) */ input: string; /** ENS name if resolved, or if reverse-resolved from address */ ensName?: string; /** Whether the input was an ENS name that got resolved */ wasEnsResolution: boolean; } interface EnsProfile { address: Address; name: string | null; avatar: string | null; } /** Clear the ENS cache (for testing). */ declare function clearEnsCache(): void; /** Check if a string looks like an ENS name (*.eth, *.base.eth, etc.) */ declare function isEnsName(input: string): boolean; /** Check if input is a valid hex address OR an ENS name. */ declare function isAddressOrEns(input: string): boolean; /** * Resolve an address-or-ENS input to a checksummed 0x address. * * - If input is already a valid address, returns it checksummed. * - If input is an ENS name, resolves via the provided publicClient. * - Throws if resolution fails or input is invalid. * * @param input - Address string or ENS name (e.g., "vitalik.eth", "0x1234...") * @param publicClient - viem PublicClient (must be connected to Ethereum mainnet for ENS) */ declare function resolveAddressOrEns(input: string, publicClient: any): Promise; /** * Reverse-resolve an address to an ENS name (if one exists). * Returns null if no reverse record is set. */ declare function reverseResolveEns(address: Address, publicClient: any): Promise; /** * Get a full ENS profile for an address (name + avatar). */ declare function getEnsProfile(address: Address, publicClient: any): Promise; /** * Batch-resolve multiple address-or-ENS inputs. * Returns results in the same order as inputs. * Individual failures are returned as errors in the result array. */ declare function resolveMany(inputs: string[], publicClient: any): Promise>; //#endregion export { EnsProfile, ResolvedAddress, clearEnsCache, getEnsProfile, isAddressOrEns, isEnsName, resolveAddressOrEns, resolveMany, reverseResolveEns }; //# sourceMappingURL=ens-resolver.d.mts.map