/**
* 文件处理函数工具库
*/
///
/**
* 向文件追加内容
*
* @param { string } filePath - 文件路径
* @param { string } content - 追加内容
* @returns { Promise }
*/
export declare const appendContent: (filePath: any, content: any) => Promise;
/**
* 是否存在目录或者文件
*
* @param { string } filePath - 文件路径或者目录路径
* @returns { Promise } - 是否存在文件或目錄
*/
export declare const isExist: (filePath: any) => Promise;
/**
* 创建目录,支持多级目录
*
* @param { string } fileDirectory - 目录路径
* @returns { Promise } - 是否创建成功
*/
export declare const createDir: (fileDirectory: any) => Promise;
/**
* 监听文件变化
*
* @param { string } filePath - 文件名路径
* @param { number } interval - 延迟器
* @param { (size: number) => void } callback - 回调函数
*/
export declare const watchFile: (filePath: any, interval: any, callback: any) => void;
/**
* 取消监听文件变化事件
*
* @param { string } filePath - 文件名路径
*/
export declare const unWatchFile: (filePath: any) => void;
/**
* 重命名文件名称
*
* @param { string } filePath - 文件名路径
* @param { string } newFilePath - 新文件名路径
* @returns { Promise } - 是否成功
*/
export declare const renameFile: (filePath: any, newFilePath: any) => Promise;
/**
* 复制文件到新路径下
*
* @param { string } filePath - 文件名路径
* @param { string } newFilePath - 新文件名路径
* @returns { Promise }
*/
export declare const copyFile: (filePath: any, newFilePath: any) => Promise;
/**
* 清空文件内容
*
* @param { string } filePath - 文件名路径
* @returns { Promise }
*/
export declare const clearFile: (filePath: any) => Promise;
/**
* 读取目录列表,获取过滤后的目录下所有文件名
*
* @param { string } fileDir - 目录路径
* @param { string } filterFile - 过滤获取此名称下的文件
* @returns { Promise } - 文件名列表
*/
export declare const readDir: (fileDir: any, filterFile: any) => Promise;
/**
* 读取文件
*
* @param filePath 文件路径
* @returns {Promise}
*/
export declare const readFile: (filePath: string) => Promise;