/** * Number formatting helpers used by `` and ``. * * Mirrors `packages/react/src/utils/formatNumber.ts`. A module-scope cache * keyed by `(locale, options)` keeps repeated formats cheap — constructing * `Intl.NumberFormat` dominates the cost. */ export declare function getFormatter(locale?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): Intl.NumberFormat; /** * Formats `value` with `Intl.NumberFormat(locale, format)`. Returns the * empty string when `value` is `null` or non-finite so the visible `` * can clear cleanly. */ export declare function formatNumber(value: number | null, locale?: Intl.LocalesArgument, format?: Intl.NumberFormatOptions): string; /** * Like {@link formatNumber} but forces maximum precision (20 fraction * digits) when the caller didn't pin an explicit precision. Used for * controlled-input display where the consumer's `value` prop must round-trip * through the formatter without losing digits. */ export declare function formatNumberMaxPrecision(value: number | null, locale?: Intl.LocalesArgument, format?: Intl.NumberFormatOptions): string; //# sourceMappingURL=format-number.d.ts.map