/// import { EventEmitter } from 'events'; import { InputOptions, OutputOptions } from '../rollup/index'; import { WatchOptions } from 'chokidar'; import { ModuleJSON } from '../Module'; export interface WatcherOptions { chokidar?: boolean | WatchOptions; include?: string[]; exclude?: string[]; clearScreen?: boolean; } export interface RollupWatchOptions extends InputOptions { output?: OutputOptions; watch?: WatcherOptions; } export declare class Watcher extends EventEmitter { dirty: boolean; running: boolean; tasks: Task[]; succeeded: boolean; constructor(configs: RollupWatchOptions[]); close(): void; _makeDirty(): void; _run(): void; } export declare class Task { watcher: Watcher; dirty: boolean; closed: boolean; watched: Set; inputOptions: InputOptions; cache: { modules: ModuleJSON[]; }; chokidarOptions: WatchOptions; chokidarOptionsHash: string; outputFiles: string[]; outputs: OutputOptions[]; deprecations: { old: string; new: string; }[]; filter: (id: string) => boolean; constructor(watcher: Watcher, config: RollupWatchOptions); close(): void; makeDirty(): void; run(): Promise; watchFile(id: string): void; } export default function watch(configs: RollupWatchOptions[]): Watcher;