import React from 'react'; import type { WithdrawalAmountSelectionType } from '../../hooks/track/analytics/events'; import type { SingleWithdrawalConfig } from '../../providers/FunkitCheckoutContext'; import type { SourceTokenOption } from '../../providers/FunkitCheckoutContext'; export type { SourceTokenOption }; /** * A dropdown row. `ticker` denominates the amount when the selection key * isn't a token symbol (a multi-source id such as `ETH_BASE`). */ export type SourceDropdownOption = SourceTokenOption & { ticker?: string; }; export declare function WithdrawAmountInput({ withdrawalInputAmount, setWithdrawalInputAmount, sourceTokenBalance, maxWithdrawableAmount, isWithdrawAmountTooLow, isWithdrawAmountTooHigh, isWithdrawAmountAboveBalance, isWithdrawAmountValid, minWithdrawalDisplayValue, config, sourceTokenOptions, onSourceTokenChange, selectedSourceToken, showChainBadges, isSourceTokenChangeDisabled, sourceTokenUsdPrice, onAmountSelectionChange, onAmountChanged, onMaxButtonClicked, }: { config: SingleWithdrawalConfig; sourceTokenBalance: string; /** What Max fills in — the balance less any reserve for network fees. */ maxWithdrawableAmount?: string; /** User-entered amount in source-token units (e.g. "0.5" for 0.5 ETH). */ withdrawalInputAmount: string; setWithdrawalInputAmount: (s: string) => void; isWithdrawAmountTooLow: boolean; /** * Amount exceeds the configured max. The over-cap explanation lives in the * bottom-bar footer, so the inline input error is suppressed — but only when * the amount is otherwise affordable. If it also exceeds the balance, * "Insufficient balance" still shows (see below). */ isWithdrawAmountTooHigh: boolean; /** Amount exceeds the available balance — takes priority over the over-cap hint. */ isWithdrawAmountAboveBalance: boolean; isWithdrawAmountValid: boolean; /** * Minimum-withdrawal value for display. Carries no unit of its own — token * units when the config provides `getMinWithdrawalAmount`, USD otherwise — so * the component re-derives which one it got (see `isMinInTokenUnits`). */ minWithdrawalDisplayValue: number; sourceTokenOptions?: SourceDropdownOption[]; onSourceTokenChange?: (opt: SourceTokenOption) => void; /** Currently selected source token symbol (drives chip label + icon). */ selectedSourceToken?: string; /** Options sit on different chains (ETH on Base and on Ink); badge each icon. */ showChainBadges?: boolean; /** Locks the dropdown, e.g. while a withdrawal is signing. */ isSourceTokenChangeDisabled?: boolean; /** * USD price per unit of the source token (e.g. ~1620 for ETH). * When omitted, the USD equivalent is rendered as "-" rather than * assuming a 1:1 stablecoin rate. */ sourceTokenUsdPrice?: number; onAmountSelectionChange?: (selectionType: WithdrawalAmountSelectionType) => void; onAmountChanged?: (amount: string, previousAmount: string) => void; onMaxButtonClicked?: (amount: string) => void; }): React.JSX.Element;