/** * Map of supported chain short names to their chain IDs. * * @remarks This mirrors viem chain definitions without depending on viem directly, * to work around Pulumi closure serialisation issues. */ export declare const supportedChains: { readonly mainnet: 1; readonly base: 8453; readonly baseSepolia: 84532; readonly sepolia: 11155111; readonly monadTestnet: 10143; readonly plasmaTestnet: 9746; readonly worldchainSepolia: 4801; readonly anvil: 31337; }; type SupportedChains = typeof supportedChains; /** Numeric chain ID of a supported chain (e.g. `84532`, `11155111`). */ export type SupportedChainId = SupportedChains[keyof SupportedChains]; /** Short name of a supported chain (e.g. `"baseSepolia"`, `"sepolia"`). */ export type SupportedChainName = keyof SupportedChains; /** A supported chain identified by both its short name and numeric ID. */ export type SupportedChain = { name: SupportedChainName; id: SupportedChainId; }; /** A value that can represent a number — either a `number` or a `bigint`. */ export type Numberish = number | bigint; /** A flexible chain identifier: a chain ID (`number` | `bigint`), an object with an `id` field, or a chain short name. */ export type Chainish = { id: Numberish; } | Numberish | string; /** * Map of supported chain IDs to their short names. * Public networks use the `shortName` from https://github.com/ethereum-lists/chains. * Local Anvil uses `31337` (same ID as GoChain Testnet in the registry) but the SDK labels it `anvil`. */ export declare const chainShortNames: Record; /** * Resolves a {@link Chainish} value to a {@link SupportedChain}. * * Accepts a chain ID (`number` or `bigint`), an object with an `id` field, * or a chain short name (e.g. `"baseSepolia"`). * * @param chainish - The chain identifier to resolve. * @returns The matching `SupportedChain` with both `name` and `id`. * @throws If no supported chain matches the given identifier. */ export declare function getSupportedChain(chainish: Chainish): SupportedChain; export {};