import * as Token from './Token.js'; /** Canonical identifier for a funding chain. */ export type Id = `eip155:${number}` | `solana:${string}` | `tron:${string}`; /** Chain metadata for a funding token. */ export type Chain = Callable & ((Base & { /** Address encoding used by accounts and tokens on the chain. */ addressFormat: 'hex'; /** Chain execution family. */ kind: 'evm'; }) | (Base & { /** Address encoding used by accounts and tokens on the chain. */ addressFormat: 'base58'; /** Chain execution family. */ kind: 'solana'; }) | (Base & { /** Address encoding used by accounts and tokens on the chain. */ addressFormat: 'base58check'; /** Chain execution family. */ kind: 'tron'; })); type Callable = (options: Callable.Options) => Selection; declare namespace Callable { /** Tokens selected for a funding route on this chain. */ type Options = { /** Token definitions to resolve on the chain. */ tokens: readonly Token.Token[]; }; } /** Tokens resolved for one funding chain. */ export type Selection = { /** Chain shared by every selected token. */ chain: Chain; /** Chain-scoped funding tokens. */ tokens: readonly Token.Resolved[]; }; type Base = { /** Caller-facing aliases accepted for this chain. */ aliases: readonly string[]; /** CAIP-2 chain identifier. */ id: Id; /** Human-readable chain name. */ name: string; /** Parent chain identifier when this chain is a Zone. */ parentChainId?: Id | undefined; /** Public RPC endpoints used for funding-chain evidence. */ rpcUrls: readonly string[]; /** Stable chain segment used in quote identifiers. */ slug: string; }; /** Creates funding chain metadata from a CAIP-2 identifier. */ export declare function from(options: from.Options): Chain; export declare namespace from { /** Funding chain definition. */ type Options = { /** Additional caller-facing aliases accepted for this chain. */ aliases?: readonly string[] | undefined; /** CAIP-2 chain identifier. */ id: Id; /** Human-readable chain name. */ name: string; /** Parent chain identifier when this chain is a Zone. */ parentChainId?: Id | undefined; /** Public RPC endpoints used for funding-chain evidence. */ rpcUrls?: readonly string[] | undefined; /** Stable chain segment used in quote identifiers. */ slug: string; }; } /** Returns the numeric portion of an EIP-155 CAIP-2 chain identifier. */ export declare function eip155Id(chain: Chain): string; /** Error thrown when a funding chain identifier is invalid for an operation. */ export declare class InvalidIdError extends Error { name: string; } export {}; //# sourceMappingURL=Chain.d.ts.map