import { ChainTypeName } from "../constants/interopAddress.js"; export interface ResolveChainInput { chainType?: string; chainReference?: string; /** Onchain ENS-based chain registry domain. Default: "on.eth". Set false to disable. */ onchainRegistry?: string | boolean; /** Whether to fall back to offchain chainid.network registry. Default: true. */ offchainRegistryFallback?: boolean; /** Custom mainnet RPC URL for onchain registry lookups. */ rpcUrl?: string; } export interface ResolvedChain { chainType: ChainTypeName; chainReference?: string; } /** * Resolves and validates chain identifier components. * * Handles three cases: * 1. Both chainType and chainReference provided: validates both and returns them * 2. Only chainType provided: validates and returns it (chainReference is undefined) * 3. Only chainReference provided: resolves shortname to chainType/chainReference, throws if can't resolve * * @param input - Object with optional chainType and chainReference * @returns Resolved chain with chainType (always) and chainReference (if available) * @throws {InvalidChainType} If chainType is invalid * @throws {InvalidChainIdentifier} If chainReference can't be resolved or chain combination is invalid */ export declare const resolveChain: (input: ResolveChainInput) => Promise; //# sourceMappingURL=resolveChain.d.ts.map