import type { Hex } from "@metamask/utils"; import type { FiatRates, TransactionPayControllerMessenger } from "../types.cjs"; /** * Get the token balance for a specific account and token. * * @param messenger - Controller messenger. * @param account - Address of the account. * @param chainId - Id of the chain. * @param tokenAddress - Address of the token contract. * @returns The token balance as a BigNumber. */ export declare function getTokenBalance(messenger: TransactionPayControllerMessenger, account: Hex, chainId: Hex, tokenAddress: Hex): string; /** * Get the token balance for a specific account and token. * * @param messenger - Controller messenger. * @param account - Address of the account. * @returns The token balance as a BigNumber. */ export declare function getAllTokenBalances(messenger: TransactionPayControllerMessenger, account: Hex): { chainId: `0x${string}`; tokenAddress: `0x${string}`; balance: string; }[]; /** * Get the token decimals for a specific token. * * @param messenger - Controller messenger. * @param tokenAddress - Address of the token contract. * @param chainId - Id of the chain. * @returns The token decimals or undefined if the token is not found. */ export declare function getTokenInfo(messenger: TransactionPayControllerMessenger, tokenAddress: Hex, chainId: Hex): { decimals: number; symbol: string; } | undefined; /** * Calculate fiat rates for a specific token. * * @param messenger - Controller messenger. * @param tokenAddress - Address of the token contract. * @param chainId - Id of the chain. * @returns An object containing the USD and fiat rates, or undefined if rates are not available. */ export declare function getTokenFiatRate(messenger: TransactionPayControllerMessenger, tokenAddress: Hex, chainId: Hex): FiatRates | undefined; /** * Get the native token address for a given chain ID. * * @param chainId - Chain ID. * @returns - Native token address for the given chain ID. */ export declare function getNativeToken(chainId: Hex): `0x${string}`; //# sourceMappingURL=token.d.cts.map