//#region src/core/format.d.ts type Format = Intl.NumberFormatOptions | ((n: number) => string); /** * Resolves the shared `format`/`locale` props into a formatter function. * Custom functions pass through; `Intl` options hit the cached instance. Both * receive a float-noise-cleaned number: charts compute differences/sums/ratios * internally (e.g. `value - target` → `-3.5999999999999943`), and a consumer's * `format` function is written for clean data, not for IEEE arithmetic. The * number is snapped to 12 significant digits first — far more than any label * shows, well inside the ~15–17 digits where binary-float noise appears. * * For a chart that has unit defaults of its own, use `makeUnitFormatter`. This * one carries no merge logic ON PURPOSE: size-limit bundles every subpath * standalone, so the ~75 charts that format a bare number would each be charged * for a branch they can never reach. Measured at 95 B gzip per subpath, which is * the difference between `./sparkline/interactive` sitting under the 7 kB wall * and over it. */ declare function makeFormatter(format: Format | undefined, locale: string | string[] | undefined): (n: number) => string; type DateFormat = Intl.DateTimeFormatOptions | ((d: Date) => string); //#endregion export { Format as n, makeFormatter as r, DateFormat as t };