import type { Hex } from "@metamask/utils"; import type { FetchFunction } from "../types.cjs"; /** * Checks if the given contract address is valid for the given chain ID. * * @param chainId - The chain ID. * @param contract - The contract address. * @returns True if the contract address is valid, false otherwise. */ export declare function isValidSwapsContractAddress(chainId: Hex, contract: Hex | undefined): boolean; /** * Gets the swaps contract address for the given chain ID. * * @param chainId - The chain ID. * @returns The swaps contract address. */ export declare function getSwapsContractAddress(chainId: Hex): string; export declare const API_BASE_URL = "https://swap.api.cx.metamask.io"; export declare const DEV_BASE_URL = "https://swap.dev-api.cx.metamask.io"; export type SwapsToken = { address: string; symbol: string; name?: string; decimals: number; iconUrl?: string; occurrences?: number; }; /** * Fetches token metadata from API URL. * * @param chainId - Current chainId. * @param fetchFn - Fetch function. * @param clientId - Client id. * @returns Promise resolving to an object containing token metadata. */ export declare function fetchTokens(chainId: Hex, fetchFn: FetchFunction, clientId?: string): Promise; //# sourceMappingURL=swaps.d.cts.map