import { type WithdrawalAmountValidation } from '@funkit/connect-core'; import type { WithdrawalFlowConfig, WithdrawalToken } from '../flow/withdrawalFlowConfig'; import { type WithdrawCtaBlocker } from './validation'; export interface CryptoWithdrawalValidation { /** Recipient the funds would be lost in (e.g. a token contract). */ isRecipientBlacklisted: boolean; amountValidation: WithdrawalAmountValidation; /** The single thing left to fix, or `undefined` when the form is complete. */ ctaBlocker: WithdrawCtaBlocker | undefined; } /** * Everything the crypto withdrawal form knows synchronously about what the user * has typed. The Statsig-backed blacklist is why this is a hook; the verdicts * themselves come from the pure functions in `validation.ts`. */ export declare function useCryptoWithdrawalValidation({ config, sourceToken, destinationToken, amount, recipient, balance, }: { config: WithdrawalFlowConfig; sourceToken: WithdrawalToken; destinationToken: WithdrawalToken | undefined; amount: string; recipient: string; balance: string | undefined; }): CryptoWithdrawalValidation; //# sourceMappingURL=useCryptoWithdrawalValidation.d.ts.map