import React from 'react'; import type { Hex } from 'viem'; import type { FunkitCheckoutQuoteResult } from '../../../domains/quote'; import type { MultiSourceWithdrawalConfig, SingleWithdrawalConfig } from '../../../providers/FunkitCheckoutContext'; import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared'; import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition'; export type WithdrawalCompleteState = CheckoutModalCommonState & { /** The config to reopen on "New withdrawal". */ withdrawalConfig: SingleWithdrawalConfig | MultiSourceWithdrawalConfig; /** The source that ran; what the success screen describes. */ executedConfig: SingleWithdrawalConfig; hash: Hex; withdrawnAmount: string; tokenSymbol: string; quote?: FunkitCheckoutQuoteResult; }; export type WithdrawalCompleteNext = Record; export declare const WithdrawalCompleteInfo: ModalStepInfo; /** * Cashier withdrawal completion screen. Mirrors the standalone `WithdrawalModal` * success screens, adapted to the CheckoutModal step contract and its bottom-bar * portal (`MODAL_BOTTOM_BAR_IDS.checkout`): * * - Wallet config → {@link WithdrawSuccess} (transaction detail keyed by tx hash). * - Custom callback config → {@link WithdrawalCallbackSuccess} (pending screen). * * Lighter Secure (mainnet) is intentionally NOT branched here yet — its success * component hard-codes the standalone `'withdrawal'` bottom-bar id, so wiring it * into the cashier is deferred to a follow-up. A Lighter customer falls into the * generic callback screen until then. */ export declare function WithdrawalComplete({ modalState, onClose, onNext, }: ModalStepComponentProps): React.JSX.Element;