import { type NetworkInfo } from '@chainlink/ccip-sdk/src/index.ts'; /** One chain parsed from `--chain-selectors`, not yet validated against the selector table. */ export type ChainSelectorEntry = { /** Chain id the chain's RPC reports, in its family's format (`2337`, `aptos:4`, genesis hash). */ readonly chainId: string; /** The chain's selector. One that a known chain already owns makes this a fork of that chain. */ readonly selector?: bigint; /** The forked chain, by name, selector, or non-numeric chain id. */ readonly forkOf?: bigint | string; /** Human-readable name; defaults to the forked chain's name, or `custom-`. */ readonly name?: string; /** Chain family; inferred from the chain id's format when omitted. */ readonly family?: string; /** `MAINNET` or `TESTNET`; defaults to `TESTNET` for a new chain. */ readonly networkType?: string; }; /** * Parses one `--chain-selectors` value into chain entries, without touching the selector table. * * Accepts inline JSON, a path to a JSON/YAML file, or a comma/whitespace-separated list of * `=` pairs and file paths (so one `CCIP_CHAIN_SELECTORS` env var can * hold several). A number on the right of `=` is always a selector; a name is a forked chain. * Documents may be an array of entries, a `chainId -> entry` map, or the chain-selectors registry's * `selectors:`-wrapped shape. */ export declare function parseChainSelectorsArg(arg: string): ChainSelectorEntry[]; /** * yargs `coerce` for `--chain-selectors` / `CCIP_CHAIN_SELECTORS`: parses each value with no side * effects, so a malformed one fails as an attributed option error at parse time. The table is only * written later, by {@link registerChainSelectors} in middleware. */ export declare function coerceChainSelectors(values: unknown[]): ChainSelectorEntry[]; /** * Writes the chains parsed from `--chain-selectors` into the SDK's selector table, so they resolve * like bundled chains everywhere. A new chain gets its own selector; an entry whose selector (or * `forkOf`) names a known chain is a fork of it, and takes over that chain's entry under the fork's * chain id. * * @returns the resolved {@link NetworkInfo} of each registered chain * @throws {@link CCIPArgumentInvalidError} if an entry is invalid or conflicts with the table */ export declare function registerChainSelectors(entries: readonly ChainSelectorEntry[] | undefined): NetworkInfo[]; //# sourceMappingURL=chain-selectors.d.ts.map