import type { TFunction } from 'i18next'; import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext'; import type { CheckoutPayer } from '../providers/GeneralWalletProvider'; import type { AssetHoldingsItem } from '../utils/assets'; import { isNativeTokenAddress } from './tokenAddress'; import { PaymentMethod } from '../domains/paymentMethods'; /** * Calculates the minimum USD value an asset must have to be considered usable for checkout. * Accounts for the customer's configured minimum deposit and a global floor. */ export declare function getMinValueThreshold(config: FunkitCheckoutConfig | undefined): number; export declare function isPreferredChain(chainId: number, additionalChains?: number[]): boolean; export { isNativeTokenAddress }; export declare function isDefaultToken(asset: AssetHoldingsItem, checkoutConfig: FunkitCheckoutConfig): boolean; /** The token a checkout delivers, as handed to integrator slots. */ export declare function getCheckoutTargetAsset(checkoutConfig: Pick): { address: `0x${string}`; chainId: string; symbol: string; }; export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean; interface AssetUsableToPayParms { config: FunkitCheckoutConfig; payerWallets: CheckoutPayer; paymentMethod: PaymentMethod; targetChainId: string; targetTokenAddress: string; assetChainId: string; assetTokenAddress: string; assetUsdAmount: number | null; isAllowedForCheckout: boolean; minValueThreshold: number; isLighterDynamicRoutingEnabled: boolean; t: TFunction; } export declare const isAssetUsableToPayForCheckout: ({ config, payerWallets, paymentMethod, targetChainId, targetTokenAddress, assetChainId, assetTokenAddress, assetUsdAmount, isAllowedForCheckout, minValueThreshold, isLighterDynamicRoutingEnabled, t, }: AssetUsableToPayParms) => { isUsable: boolean; reason: string; minUsdWithFees?: number; };