import type { FunAddress } from '@funkit/api-base'; import { CheckoutRefundState, CheckoutState } from '@funkit/api-base'; import type { CheckoutPayer } from '../providers/GeneralWalletProvider'; /** * Web's entry to the shared screen: resolves the kill switch and logger. * Every connected wallet is screened, not just the one paying. */ export declare const hasRisk: (apiKey: string, payerWallets: CheckoutPayer, customRecipient?: FunAddress, /** Internal decimal chain ids: the wallet pays on the source chain, the recipient receives on the target chain. */ chainIds?: { sourceChainId?: string; targetChainId?: string; }) => Promise; export type CheckoutStatus = 'failed' | 'expired' | 'processing' | 'completed'; type CheckoutStateBooleans = { isProcessing: boolean; isCompleted: boolean; isError: boolean; isExpired: boolean; isFailed: boolean; isTerminal: boolean; /** won't have correct value if `refundState` is not passed into the hook */ isRefundProceeded: boolean; status: CheckoutStatus; }; export declare function getCheckoutStateBooleans(checkoutState: CheckoutState, refundState?: CheckoutRefundState): CheckoutStateBooleans; export {};