/** Monetary storage uses nanodollars: 10^7 units per cent, 10^9 per USD. * Numbers are accepted only at compatibility boundaries. All arithmetic uses * integers; decimal inputs are rounded once, half away from zero. */ export declare const MONEY_SCALE = 10000000n; export declare const MAX_MONEY_UNITS: bigint; export type MoneyInput = string | number; export declare function centsToUnits(value: MoneyInput): bigint; export declare function usdToUnits(value: MoneyInput): bigint; export declare function unitsToCents(value: bigint): string; export declare function normalizeCents(value: MoneyInput): string; export declare function usdToCents(value: MoneyInput): string; /** Exact editable USD value; unlike display formatting, this never rounds cents. */ export declare function centsToUsd(value: MoneyInput): string; /** Approximate legacy/UI value. Never use this conversion for a money decision. */ export declare function centsToNumber(value: MoneyInput): number; export declare function addCents(...values: MoneyInput[]): string; export declare function subtractCents(a: MoneyInput, b: MoneyInput): string; export declare function compareCents(a: MoneyInput, b: MoneyInput): number; export declare function formatUsdExact(cents: MoneyInput): string; //# sourceMappingURL=money.d.ts.map