import React from 'react'; import { type TokenSwapToken } from '../TokenSelectButton/TokenSelectButton'; export type TokenSwapDepositState = { /** No funds available to swap. */ isDepositRequired: true; onDeposit: () => void; } | { isDepositRequired?: false; onDeposit?: never; }; interface TokenSwapCardContentProps { variant: 'from' | 'to'; label: string; token?: TokenSwapToken; onTokenClick?: () => void; /** The big amount, without prefix/suffix. */ amount: string; amountPrefix?: string; /** Present only on the editable (source) card. */ onAmountChange?: (next: string) => void; /** To card only: a press on the read-only amount shakes its row and calls this; omit to leave it inert. */ onAmountClick?: () => void; /** The amount in the other unit, already formatted. */ convertedAmount: string; onToggleUnit?: () => void; balance?: string; /** Shows the percentage presets beside the label; 100 is Max. */ onPercentSelect?: (percent: number) => void; isLoading?: boolean; /** Keeps the layout but makes every control inert. */ isDisabled?: boolean; testId: string; } export type TokenSwapCardProps = TokenSwapCardContentProps & TokenSwapDepositState; /** A swap card's shell: `from` is outlined, `to` filled. Shared with the skeleton so both line up. */ export declare function TokenSwapCardFrame({ variant, testId, children, }: { variant: 'from' | 'to'; testId?: string; children: React.ReactNode; }): React.JSX.Element; /** One row of a swap card: content at the start, content at the end. */ export declare function TokenSwapCardRow({ children, ref, }: { children: React.ReactNode; ref?: React.Ref; }): React.JSX.Element; /** * One card of the swap widget. * - `from`: outlined, unit toggle, percentage presets; editable unless a deposit is required. * - `to`: filled background, read-only, amount comes from the quote. */ export declare function TokenSwapCard({ variant, label, token, isDepositRequired, onDeposit, onTokenClick, amount, amountPrefix, onAmountChange, onAmountClick, convertedAmount, onToggleUnit, balance, onPercentSelect, isLoading, isDisabled, testId, }: TokenSwapCardProps): React.JSX.Element; export {};