///
import * as fs from 'fs';
/**
* @description Promise fs.readdir
*/
declare function readDir(path: fs.PathLike): Promise;
/**
* @description Promise fs.stat
*/
declare function stat(path: fs.PathLike, options?: fs.StatOptions): Promise;
/**
* @description Promise fs.mkdir
*/
declare function mkDir(path: fs.PathLike, options?: fs.MakeDirectoryOptions): Promise;
/**
* @description Promise fs.access
*/
declare function access(path: fs.PathLike, mode?: number): Promise;
/**
* @description Recursively empty the folder.
*/
declare function emptyDir(path: fs.PathLike): Promise;
/**
* @description Recursively empty the folder,
* the folder will be created if it does not exist.
*/
declare function clearDir(path: fs.PathLike): Promise;
/**
* @description Delete the specified extname file.
*/
declare function unlinkDirFileByExtname(path: fs.PathLike, extnames?: string[]): Promise;
/**
* @description Copy the folder to the specified location.
* If the folder already exists in the specified location,
* the folder will be cleared.
*/
declare function copyDir(path: fs.PathLike, dest: string): Promise;
declare function copyFile(path: fs.PathLike, dest: string): Promise;
/**
* @description Recursively traverse all files.
*/
declare function fileForEach(path: fs.PathLike, callback: (path: string) => any, filterDir?: RegExp[], filterFile?: RegExp[]): Promise;
/**
* @description fs.readFile
*/
declare function readFile(path: fs.PathLike, options?: {
encoding?: BufferEncoding;
flag?: string;
}): Promise;
/**
* @description fs.writeFile
*/
declare function writeFile(path: fs.PathLike, data: any, option?: fs.WriteFileOptions): Promise;
/**
* @description Traverse all folders.
*/
declare function dirForEach(path: fs.PathLike, callback: (path: string) => any): Promise;
declare function isDir(path: string): Promise;
export { stat, mkDir, isDir, access, copyDir, readDir, clearDir, copyFile, emptyDir, readFile, writeFile, dirForEach, fileForEach, unlinkDirFileByExtname, };