/** * Shared number-formatting helper used by `` and * ``. Both components format a numeric value for display using * the same algorithm: if an explicit `format` is provided, pass the value * through `Intl.NumberFormat` verbatim; otherwise use a percent formatter * applied to `value / 100`. * * A module-scope cache keyed by `(locale, options)` keeps repeated formats * O(1). Construction of `Intl.NumberFormat` is the expensive step; the * formatters themselves are cheap to re-use. */ /** * Formats a numeric value for display. Returns `""` if `value` is `null` * (matches progress's indeterminate state). If `format` is undefined, the * default is a percentage applied to `value / 100` — so a raw value of `42` * yields `"42%"` under an `en-US` locale. */ export declare function formatNumberValue(value: number | null, locale: Intl.LocalesArgument | undefined, format: Intl.NumberFormatOptions | undefined): string; //# sourceMappingURL=format-number.d.ts.map