export interface RegisteredChain { /** Chain label in the registry (e.g., "optimism", "base") */ label: string; /** Human-readable chain name (e.g., "OP Mainnet", "Base") */ name: string; /** CAIP-2 chain type (e.g., "eip155", "solana", "bip122") */ chainType: string; /** CAIP-2 chain reference (e.g., "1", "10", "8453") */ chainReference: string; } export interface GetRegisteredChainsOptions { /** Ethereum mainnet RPC URL. Falls back to MAINNET_RPC_URL env var. */ rpcUrl?: string; } /** * Fetches all chains registered in the on.eth ChainResolver contract. * * Calls `chainCount()` then `getChainAtIndex()` for each index via multicall, * and decodes the ERC-7930 interoperable address to extract the CAIP-2 chain type and reference. * * @see https://github.com/unruggable-labs/chain-resolver/blob/main/web/mainnet_on.html#L830 * * @example * ```ts * const chains = await getRegisteredChains({ rpcUrl: process.env.MAINNET_RPC_URL }); * // [{ label: "optimism", name: "OP Mainnet", chainType: "eip155", chainReference: "10" }, ...] * ``` */ export declare function getRegisteredChains(options?: GetRegisteredChainsOptions): Promise; //# sourceMappingURL=getRegisteredChains.d.ts.map