import React from 'react'; import type { Hex } from 'viem'; import { type ModalBottomBarIdType } from '../../components/Dialog/Dialog'; import type { AnalyticsNamedStep } from '../../hooks/track/analytics/mappers'; import type { FunkitActiveWithdrawalItem, MultiSourceWithdrawalConfig, SingleWithdrawalConfig } from '../../providers/FunkitCheckoutContext'; import { type WithdrawalFormData } from './useWithdrawal'; /** * Multi-method configs are resolved in WithdrawalModal before reaching here; a * multi-source config is resolved by {@link MultiSourceWithdrawContent}. */ interface WithdrawContentProps { analyticsStep: AnalyticsNamedStep; /** `executedConfig` is the source that ran — the picked one on a multi-source config. */ onContinue: (withdrawal: WithdrawalFormData, txHash: Hex, executedConfig: SingleWithdrawalConfig) => void; config: SingleWithdrawalConfig | MultiSourceWithdrawalConfig; withdrawalItem: FunkitActiveWithdrawalItem | null; /** * Switch a Lighter Fast withdrawal to the Lighter Secure method. Wired by * {@link WithdrawalModal}; used by the over-$3M footer. */ onSwitchToSecure?: () => void; /** * Portal target for the CTA. Defaults to the standalone WithdrawalModal's * bottom bar; the unified CheckoutModal cashier flow passes `'checkout'` so * the button lands in the checkout modal's bottom section instead. */ bottomBarId?: ModalBottomBarIdType; /** * When true the submit CTA is rendered inert (disabled, no-op click) — no * withdrawal executes and `onContinue` never fires. Used by the cashier amount * step while the continue/success flow is not yet wired. Defaults to false so * the standalone WithdrawalModal is unaffected. */ disableSubmit?: boolean; } export declare const WithdrawContent: (props: WithdrawContentProps) => React.JSX.Element; export {};