import type { ContractInfo, TokenMetadata } from '@0xsequence/metadata'; import { type Hex } from 'viem'; import type { Collectible } from '../../contexts/SelectPaymentModal.js'; export interface UseCryptoPaymentArgs { chain: string | number; currencyAddress: string; totalPriceRaw: string; collectible: Collectible; collectionAddress: string; recipientAddress: string; targetContractAddress: string; txData: Hex; transactionConfirmations?: number; onSuccess?: (txHash: string) => void; onError?: (error: Error) => void; currencyInfo: ContractInfo | undefined; tokenMetadatas: TokenMetadata[] | undefined; dataCollectionInfo: ContractInfo | undefined; isLoadingCollectionInfo: boolean; errorCollectionInfo: Error | null; isLoadingTokenMetadatas: boolean; errorTokenMetadata: Error | null; isLoadingCurrencyInfo: boolean; errorCurrencyInfo: Error | null; slippageBps?: number; } export interface UseCryptoPaymentReturn { cryptoOptions: { data: CryptoOption[]; isLoading: boolean; error: Error | null; }; purchaseAction: { action: () => Promise; isReady: boolean; selectedCurrencyAddress: string | undefined; setSelectedCurrencyAddress: (currencyAddress: string) => void; }; } interface CryptoOption { chainId: number; address: string; name: string; totalPriceRaw: string; symbol: string; decimals: number; totalPriceDisplay: string; logoUrl?: string; isInsufficientFunds: boolean; isSelected: boolean; } export declare const useCryptoPayment: ({ chain, currencyAddress, totalPriceRaw, targetContractAddress, txData, transactionConfirmations, onSuccess, onError, currencyInfo, isLoadingCurrencyInfo, errorCurrencyInfo, slippageBps }: UseCryptoPaymentArgs) => UseCryptoPaymentReturn; export {}; //# sourceMappingURL=useCryptoPayment.d.ts.map