/// import { FSWatcher, WatchOptions } from 'chokidar'; type FileTransform = (source: Buffer, filename: string) => void | string; export interface FileWatcherOptions { src: string | string[]; dest: string; transform?: FileTransform; verbose?: boolean; } export declare class FileWatcher { private src; private dest; private transform?; private verbose?; private watcher; private onChange?; constructor({ src, dest, transform, verbose }: FileWatcherOptions); watch(watchOptions: WatchOptions & { cwd: string; }, onReady?: (watcher: FSWatcher) => void, onChange?: () => void): FSWatcher; add(paths: string | ReadonlyArray): FSWatcher; unwatch(paths: string | ReadonlyArray): FSWatcher; close(): Promise; copy(from: string): Promise; remove(from: string): Promise; info(type: 'close' | 'copy' | 'remove' | 'add' | 'unwatch', msg?: string | unknown): void; from(from: string): string; to(from: string): string; } export {};