/** * Humanizes a number utilizing a square-basis unit, returning a tuple of formatted number with requested * decimal places in first position and then respective human-readable unit in second position. * * By default, it will use the following units: K, M, B, T and a basis of 1000 with one decimal place. * * Example: To format file sizes, use units of ['KB', 'MB', 'GB', 'TB'] with a threshold of 1024. */ declare function humanizeUnit(dividend: number, options?: HumanizeUnitOptions): readonly [string, string | undefined]; interface HumanizeUnitOptions { basis?: number; decimalPlaces?: number; units?: string[]; } export { type HumanizeUnitOptions, humanizeUnit };