///
/**
*****************************************
* 加载依赖
*****************************************
*/
import { Stats } from 'fs';
import * as chokidar from 'chokidar';
/**
*****************************************
* 监听对象
*****************************************
*/
export interface Watcher extends chokidar.FSWatcher {
waitExit(): Promise;
}
/**
*****************************************
* 监听回调
*****************************************
*/
export interface Handler {
(this: Watcher, type: 'add' | 'addDir' | 'change' | 'unlink' | 'unlinkDir', path: string, stats?: Stats): void;
}
/**
*****************************************
* 配置
*****************************************
*/
export interface Options extends chokidar.WatchOptions {
handler?: Handler;
}
/**
*****************************************
* 监听文件文件变更
*****************************************
*/
export declare function watch(files: string | string[], handler?: Handler | Options): Watcher;
//# sourceMappingURL=watcher.d.ts.map