import type { MeldQuote, MeldServiceProvider } from '@funkit/api-base'; import React from 'react'; import type { Hex } from 'viem'; import { type PaymentMethodInfo } from '../../../domains/paymentMethods'; import { type CheckoutModalCommonState, FunCheckoutStep } from '../stepTransition.shared'; import { type ModalStepComponentProps, type ModalStepInfo } from '../stepTransition'; import { type AmountSelection } from './state'; export type InputAmountState = CheckoutModalCommonState & { paymentMethodInfo: PaymentMethodInfo; fiatAmount?: number; fiatCurrency?: string; quote?: MeldQuote; serviceProvider?: MeldServiceProvider; isInputInFiat?: boolean; /** Preserved token amount from a previous visit (source of truth in EXACT_IN) */ assetAmount?: number; /** Source token identifier — used to detect asset changes and discard stale values */ sourceTokenKey?: string; /** How the current amount was selected for analytics attribution */ amountSelection?: AmountSelection; }; export type InputAmountNext = Record | { fiatAmount: number | undefined; fiatCurrency?: string; serviceProvider?: MeldServiceProvider; quote?: MeldQuote; nextStep?: FunCheckoutStep.SOURCE_CHANGE | FunCheckoutStep.MELD_CURRENCY_SELECT | FunCheckoutStep.MELD_QUOTES | FunCheckoutStep.MELD_REDIRECT; } | { nextStep: FunCheckoutStep.CHECKOUT_COMPLETE; txHash: Hex; }; export declare const InputAmountInfo: ModalStepInfo; export declare function InputAmount(props: ModalStepComponentProps): React.JSX.Element;