import { InjectionToken, PipeTransform } from '@angular/core'; export declare type ByteNumberUnit = 'B' | 'kB' | 'MB' | 'GB' | 'TB' | 'PT'; export declare function getByteNumberUnitBreakpoints(): Record; export declare function getByteNumberUnitNames(): Record; export declare function getByteNumberUnitPluralNames(): Record; /** * Transforms a given size value into a string. The format of the output string * can also be customized using the same digit info format as used when calling * the {@link formatNumber} function. * * ``` * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits} * ``` * * Additionally the output of the unit of the string can be adjusted using the * following tokens as described. However the format must always start with a * valid digit info format as it basically gets split and passed on to another * implementation! * * | Token | Description | Example | * | ------ | ------------------------------- | --------- | * | `UU` | Full length unit name | Kilobytes | * | `uu` | Unit name abbreviation | kB | * * @param value The number of bytes that is expected to be formatted into a readable string * @param locale The locale used for the number formatting * @param format The format to expect of the output (eg. '1.0-2 uu') * @param unit Optional {@link ByteNumberUnit} the output should be display in. If not * provided, the breakpoint for the respective units will be used to auto- * format the expected unit (eg. `1024` will be formatted to `1 kB`, given * the default format is used, since `1024 >= kB`) */ export declare function formatByteNumber(value: number, locale: string, format: string, unit?: ByteNumberUnit): any; export declare const BYTE_NUMBER_FORMAT: InjectionToken; export declare class ByteNumberPipe implements PipeTransform { readonly locale: string; readonly format?: string; constructor(locale: string, format?: string); transform(bytes: number, format?: string, unit?: ByteNumberUnit): string; } export declare class ByteNumberPipeModule { }