import type { CaipAssetType, CaipChainId, Hex } from "@metamask/utils"; import type { GenericQuoteRequest } from "../types.cjs"; /** * Converts a chainId to a CaipChainId * * @param chainId - The chainId to convert * @returns The CaipChainId */ export declare const formatChainIdToCaip: (chainId: Hex | number | CaipChainId | string) => CaipChainId; /** * Converts a chainId to a decimal number that can be used for bridge-api requests * * @param chainId - The chainId to convert * @returns The decimal number */ export declare const formatChainIdToDec: (chainId: number | Hex | CaipChainId | string) => number; /** * Converts a chainId to a hex string used to read controller data within the app * Hex chainIds are also used for fetching exchange rates * * @param chainId - The chainId to convert * @returns The hex string */ export declare const formatChainIdToHex: (chainId: Hex | CaipChainId | string | number) => Hex; /** * Converts an asset or account address to a string that can be used for bridge-api requests * * @param address - The address to convert * @returns The converted address */ export declare const formatAddressToCaipReference: (address: string) => string; /** * Converts an address or assetId to a checksummed CaipAssetType * * @param addressOrAssetId - The address or assetId to convert * @param chainId - The chainId of the asset * @returns The CaipAssetType */ export declare const formatAddressToAssetId: (addressOrAssetId: Hex | CaipAssetType | string, chainId?: GenericQuoteRequest['srcChainId']) => CaipAssetType | undefined; //# sourceMappingURL=caip-formatters.d.cts.map