export declare enum BytesUnit { KB = 1024, MB = 1048576, GB = 1073741824, TB = 1099511627776 } /** ## `bytes_to` : 将bytes数据转化成可读数据形式 + 默认只显示三位小数 @example Usage ```ts const kb = bytes_to(1023, BytesUnit.KB) const kb1 = bytes_to('1024', BytesUnit.KB) const mb = bytes_to(1024 * 1024, BytesUnit.MB) const gb = bytes_to(1024 * 1024 * 1024, BytesUnit.GB) assert(equal('0.999KB', kb)) assert(equal('1KB', kb1)) assert(equal('1MB', mb)) assert(equal('1GB', gb)) ``` @category format */ export declare function bytes_to(bytes: number | string, unit: BytesUnit): string; //# sourceMappingURL=bytes.d.ts.map