///
/**
* The platform-specific file separator. '\' or '/'.
*/
export declare const sep: "\\" | "/";
/**
* Checks if path is a file
* Synchronous mode
*
* @param {string} p
* @returns {*} {boolean}
*/
export declare function isFile(p: string): boolean;
/**
* Checks if path is a dir
* Synchronous mode
*
* @param {string} p
* @returns {*} {boolean}
*/
export declare function isDir(p: string): boolean;
/**
* Read the contents of the file filename.
* Asynchronous mode
*
* @param {string} filename
* @param {string} [enc='utf8']
* @returns {*} {Promise}
*/
export declare function readFile(filename: string): Promise;
/**
* Checks if the file or folder p is writable
* Synchronous mode
*
* @param {string} p
* @returns {*} {boolean}
*/
export declare function isWritable(p: string): boolean;
/**
* Write the string data to file.
* Asynchronous mode
*
* @param {string} filename
* @param {(string | Buffer)} data
* @returns {*} {Promise}
*/
export declare function writeFile(filename: string, data: string | Buffer): Promise;
/**
* Rename the file. If newFileName and fileName be not in the same physical path,
* the move file action will be triggered.
* Asynchronous mode
*
* @param {string} FileName
* @param {string} newFileName
* @returns {*} {Promise}
*/
export declare function reFile(fileName: string, newFileName: string): Promise;
/**
* Delete the file p.
* Asynchronous mode
*
* @param {string} p
* @returns {*} {Promise}
*/
export declare function rmFile(p: string): Promise;
/**
* According to the path p to create a folder,
* p contains multi-level new path will be automatically recursively created.
* Asynchronous mode
*
* @param {string} p
* @param {string} [mode='0777']
* @returns {Promise}
*/
export declare function mkDir(p: string, mode?: string): Promise;
/**
* Recursively read the path under the p folder.
* Asynchronous mode
*
* @param {string} p
* @param {*} filter
* @param {string} [prefix='']
* @returns {*} {Promise}
*/
export declare function readDir(p: string, filter: any, prefix?: string): Promise;
/**
* Subfolder of path p are recursively deleted. When reserve is true, the top-level folder is deleted
* Asynchronous mode
*
* @param {string} p
* @param {boolean} reserve
* @returns {*}
*/
export declare function rmDir(p: string, reserve: boolean): Promise;
/**
* Modify the permissions of the file or folder p.
* Asynchronous mode
*
* @param {string} p
* @param {string} [mode='777']
* @returns {*} {Promise}
*/
export declare function chmod(p: string, mode?: string): Promise;