import { ChainConfig, ForeignToken } from "@daimo/contract"; import { Hex } from "viem"; import { Locale } from "./i18n"; import { MoneyEntry } from "./moneyEntry"; import { TransferClog } from "./op"; /** Viem hexToBytes, wrapped in a Buffer instead of Uint8Array */ export declare function hexToBuffer(hex: Hex): Buffer; export declare function formatFeeAmountOrNull(locale: Locale, dollars: number): string | null; /** Formats an amount for a non-USD token, eg "123.000000" */ export declare function getForeignCoinDisplayAmount(amount: `${bigint}` | bigint, coin: ForeignToken): string; /** * Creates a complete memo, eg: * Send to non-stablecoin: "USDC → 0.0017 ETH" * Send cross-chain: "USDC Poly" * Non-USD amount entry + memo + cross-chain: "ARS234 · Test 234 · USDC Poly" */ export declare function getFullMemo({ memo, money, }: { /** User-entered memo, if any. */ memo?: string; /** User-entered amount. */ money: MoneyEntry; }): string; export declare function getTransferSummary(op: TransferClog, chainConfig: ChainConfig, locale?: Locale, short?: boolean): string | undefined; export declare function capitalize(str: string): string;