/** * 文件系统相关 */ import { ProjectConfig } from '@byted/miniprogram-utils/dist/data/project'; /** MB 转 Byte 数,即 mb * 1024 * 1024 */ export declare const mb2Byte: (mb: number) => number; /** Byte size 转 MB,即 byte / 1024 / 1024,默认保留 4 位小数 */ export declare const byte2Mb: (byte: number, fixed?: number) => number; /** 获取文件字节数体积,实际上文件夹也支持,获取的是文件夹本身占用的系统体积(测试为 128Byte) */ export declare const getFileByteSize: (path: string, projectConfig: ProjectConfig) => number; /** 获取指定目录下所有文件体积和,支持 glob pattern ignore */ export declare const getDirByteSize: (path: string, ignore: string[], whiteList: string[], projectConfig: ProjectConfig) => Promise; /** 获取指定路径(兼容文件 / 整个目录)大小 Byte 数 */ export declare const getPathByteSize: (path: string, ignore: any[], whiteList: string[], projectConfig: ProjectConfig) => number | Promise; /** * @description: 把game.json插入到zip中 * @param {string} gameJsonPath * @param {string} webglPath * @return {Promise} */ export declare const appendGameJsonToZipForUnity: (gameJsonPath: string, webglPath: string) => Promise;