/// import * as fs from 'fs'; export declare const mkdir: typeof fs.mkdir.__promisify__; export declare const readDir: typeof fs.readdir.__promisify__; /** * Create a temporary directory and return it's path. * * @returns {Promise} */ export declare function mkdtemp(): Promise; /** * Create a temporary directory and return it's path. (synchronous) * * @returns {string} */ export declare function mkdtempSync(): string; /** * Read file contents. * * @param {string} filename * @returns {Promise} */ export declare function read(filename: string): Promise; /** * Check if the file exists. * * @param {string} filename * @returns {Promise} */ export declare function exists(filename: string): Promise; /** * Check if the directory exist. * * @param {string} pathName * @returns {boolean} */ export declare function existsDir(pathName: string): Promise; /** * Read all files in a directory. * * @param {string} pathName * @returns {Promise} */ export declare function glob(pathName: string): Promise; /** * Write contents to file. * * @param {string} filepath * @param {any} data * @returns {Promise} */ export declare function write(filepath: string, data: any): Promise; /** * Remove the file. * * @param {string} filepath * @returns {Promise} */ export declare function remove(filepath: string): Promise; /** * Copy file. * * @param {string} fromPath * @param {string} toPath * @returns {Promise} */ export declare function copy(fromPath: string, toPath: string): Promise;