/** * `1062.11` → `1,062.11`. The fraction is passed through untouched: rounding a * balance would show the user a number they can't withdraw. */ export declare function groupThousands(amount: string): string; /** * A rate as its percentage: a fraction is padded to two decimals (`0.042` → * `4.20%`), a whole percent stays bare (`0.01` → `1%`). A rate too small to * round to a hundredth reads `<0.01%`, since the row beside it still charges a * real amount. */ export declare function formatPercent(rate: number): string; /** * The fraction a token amount is shown to, matching web's `ASSET_DECIMALS` (see * the checkout's `InputAmount/utils.ts`) so the two flows read the same. */ export declare const ASSET_DECIMALS = 5; /** * `99.780000` → `99.78`, capped at {@link ASSET_DECIMALS}. * * Truncated rather than rounded: a figure the recipient won't actually get is * worse than one digit less of it. Trailing zeros go, so a round amount reads as * one. */ export declare function formatTokenAmount(amount: string, maxDecimals?: number): string; /** `99.94` → `$99.94`. Two decimals, as every USD figure in the design is. */ export declare function formatUsd(value: number): string; /** `99.94, 'AUD'` → `A$99.94`. Fiat amounts are not always dollars. */ export declare function formatFiat(value: number, currency: string): string; /** * `2, 'USD'` → `$2`, `2.5, 'USD'` → `$2.50`. * * For the deposit limit disclaimers only: a threshold reads the way the rail * states it ("the minimum for this purchase is 2 USD"), and cents the user * never has to think about are noise. Amounts they pay keep {@link formatFiat}. */ export declare function formatFiatWhole(value: number, currency: string): string; //# sourceMappingURL=formatAmount.d.ts.map