import type { ChainIdentifier, ChainIdentifierParts } from "../internal.js"; import { ChainTypeName } from "../internal.js"; /** * Converts a chain reference to a CAIP-350 chain identifier (e.g. `"eip155:1"`, `"bip122:000000000019d6689c085ae165831e93"`). * * @see https://standards.chainagnostic.org/CAIPs/caip-350#chain-identifier-text-representation * * @param chainReference - Chain reference (e.g. 1, "42161", "000000000019d6689c085ae165831e93") * @param chainType - Chain type namespace (default: "eip155" for EVM chains) * @returns CAIP-350 chain identifier (e.g. "eip155:1") */ export declare function toChainIdentifier(chainReference: string | number, chainType?: ChainTypeName): ChainIdentifier; /** * Parses a CAIP-350 chain identifier (e.g. `"eip155:1"`) into its constituent parts. * * This is the inverse of {@link toChainIdentifier}. * * @see https://standards.chainagnostic.org/CAIPs/caip-350#chain-identifier-text-representation * * @param chainIdentifier - CAIP-350 chain identifier (e.g. "eip155:1", "bip122:000000000019d6689c085ae165831e93") * @returns An object containing the `chainReference` (string) and `chainType` ({@link ChainTypeName}) * @throws {InvalidChainIdentifier} If the identifier is not in valid `namespace:reference` format * or the namespace is not a known {@link ChainTypeName} */ export declare function fromChainIdentifier(chainIdentifier: string): ChainIdentifierParts; //# sourceMappingURL=chainIdentifier.d.ts.map