/** * Checks if a folder exists and creates it if necessary. * @param path One or multiple paths to be checked. */ export declare function ensureFolder(path: string | Array): Promise; /** * Merges the provided content with a json file * @param path The path to the subject json file * @param content The content to be applied (as a plain object) */ export declare function writeJSON(path: string, content: any): Promise; /** * Reads a file and parses it's JSON content * @param path The path to the subject json file */ export declare function readJSON(path: string): Promise; /** * Reads a file and parses it's JSON content * @param path The path to the subject json file */ export declare function readJSONSync(path: string): T; /** * Returns true if the directory is empty */ export declare function isEmptyDirectory(dir?: string): Promise; /** * Returns th name of the Home directory in a platform-independent way. * @returns `USERPROFILE` or `HOME` */ export declare function getUserHome(): string; export declare type PackageJson> = { name: string; version: string; main?: string; dependencies?: Record; devDependencies?: Record; peerDependencies?: Record; bundledDependencies?: string[]; bundleDependencies?: string[]; } & T; //# sourceMappingURL=filesystem.d.ts.map