import type { LocaleOrOptions } from '../intlCache'; /** `iec` is 1024 with KiB/MiB labels, `si` is 1000 with kB/MB labels, and `binary` is the mix interfaces usually mean by "GB": 1024 steps under the shorter labels. */ export type FileSizeUnits = 'iec' | 'si' | 'binary'; export interface FormatFileSizeOptions { /** The unit system, `'iec'` by default. */ units?: FileSizeUnits; /** Digits after the decimal point. Defaults to `1`. */ dp?: number; /** Writes the number with this locale's separators, e.g. `1,5 MB`. Defaults to a plain `.`. */ locale?: string | string[] | undefined; } /** * Bytes as human-readable text. * * @author https://stackoverflow.com/users/65387/mpen * @see https://stackoverflow.com/a/14919494 */ export declare function formatFileSize(bytes: number, { units: unitSystem, dp, locale }?: FormatFileSizeOptions): string; export interface FormatUnitOptions { /** Writes the number with this locale's separators, e.g. `1,5k`. Defaults to a plain `.`. */ locale?: string | string[] | undefined; } /** A count shortened to one decimal and a k, M, B or T suffix, rounding up to the next unit when it would print 1000. */ export declare function formatUnit(num: number, { locale }?: FormatUnitOptions): string; /** Euros in French notation by default; takes a locale or `{ locale, ...Intl.NumberFormatOptions }`, so `currency` can be overridden too. */ export declare function formatEuro(amount: number, localeOrOptions?: LocaleOrOptions): string; export declare function formatSiret(value: string): string; //# sourceMappingURL=number.d.ts.map