export interface Options { /** * Include plus sign for positive numbers. If the difference is exactly * zero a space character will be prepended instead for better alignment. * @default false */ signed?: boolean; /** * Format the number as bits instead of bytes. This can be useful when, * for example, referring to bit rate. * @default false */ bits?: boolean; /** * Format the number using the Binary Prefix instead of the SI Prefix. * This can be useful for presenting memory amounts. * However, this should not be used for presenting file sizes. * @default false */ binary?: boolean; /** * The minimum number of fraction digits to display. * If neither `minimumFractionDigits` or `maximumFractionDigits` are set, * the default behavior is to round to 3 significant digits. */ minimumFractionDigits?: number; /** * The maximum number of fraction digits to display. * If neither `minimumFractionDigits` or `maximumFractionDigits` are set, * the default behavior is to round to 3 significant digits. */ maximumFractionDigits?: number; /** * Put a space between the number and unit. * @default true */ space?: boolean; /** * Use a non-breaking space between the number and unit. * @default false */ nonBreakingSpace?: boolean; /** * The locale to use for number formatting. * - If `true`, the system default locale is used. * - If a string, the value is expected to be a locale-key * (for example: `de`). * - If an array of strings, the first supported locale will be used. * @default false */ locale?: string | string[] | boolean; /** * Fixed width for the result string. The string will be padded with spaces * on the left if needed. */ fixedWidth?: number; } export declare function humanBytes(num: number | bigint, options?: Options): string; export default humanBytes; //# sourceMappingURL=index.d.ts.map