/** * The amount as the user types it, and which denomination they are typing in. * * - `amount` never changes meaning: the quote, the validation and the signature * are all in source-token units, so when typing in dollars the typed figure * is held here and `amount` is what it converts to. * - Held with the form rather than in the screen, which unmounts on the way to * the recipient — local state would drop both on Continue. */ export declare function useWithdrawalAmountInput({ amount, setAmount, sourceUsdPrice, sourceDecimals, }: { /** The withdrawal amount, in source-token units. */ amount: string; setAmount: (amount: string) => void; /** Spot USD price of the source token; `0` is the price hook's "unknown". */ sourceUsdPrice: number; /** Fraction digits the source token carries, once they're known. */ sourceDecimals: number | undefined; }): { /** What to show and edit: dollars when {@link inUsd}, else token units. */ input: string; setInput: (next: string) => void; inUsd: boolean; /** * Switches denomination, converting the amount rather than clearing it. * * - Deliberately does not re-price against a rate that moved since the * figure was typed: rewriting what someone entered, under them, is worse * than showing it at the rate they entered it at. * - The staleness is bounded by refreshing the price on the way into this * screen rather than while it is open. */ swapDenomination: () => void; /** Offering the swap without a rate would promise one we don't have. */ canSwapDenomination: boolean; /** What the amount is worth, or `undefined` when nothing prices it. */ amountUsd: string | undefined; }; //# sourceMappingURL=useWithdrawalAmountInput.d.ts.map