import { ICreateJsonFileParams } from "../types"; /** * 不存在的文件夹则创建 * @param {string} path */ export declare const notExistsToCreateFile: (path: string) => void; /** * 获取json文件 并返回 [[key,value],[key,value]...]] * @param {*} path * @returns */ export declare const readJsonFileSync: (path: string) => Promise; /** * 创建json文件 * @param {string} fileName 文件名 * @param {string} folderName 文件夹名 * @param {string} language 语言环境 * @param {object} jsonData 文件数据 */ export declare const createJsonFile: (params: ICreateJsonFileParams) => void; export declare const getRandomNumber: (min: number, max: number) => number; export declare const isDirectoryPath: (path: string) => boolean; export declare const readFileOfDirSync: (dirPath: string) => string[]; export declare function chunkArray(array: T[], chunkSize: number): T[][]; export declare function intersection(arr1: T[], arr2: T[]): T[]; /** * 扁平化嵌套 JSON 对象,使用点符号作为键 * @param obj 要扁平化的对象 * @param prefix 键前缀 * @returns 扁平化后的对象 */ export declare const flattenJson: (obj: any, prefix?: string) => Record; /** * 将扁平化的 JSON 重构为嵌套结构 * @param flatObj 扁平化的对象 * @returns 重构后的嵌套对象 */ export declare const unflattenJson: (flatObj: Record) => any; //# sourceMappingURL=utils.d.ts.map