/// import { ChildProcess } from 'child_process'; import chokidar from 'chokidar'; import { BitId } from '../../bit-id'; import { Compile } from '../compiler'; import { Workspace } from '../workspace'; import { Consumer } from '../../consumer'; declare type WatcherProcessData = { watchProcess: ChildProcess; compilerId: BitId; componentIds: BitId[]; }; export default class Watch { private compile; private workspace; private trackDirs; private verbose; private multipleWatchers; constructor(compile: Compile, workspace: Workspace, trackDirs?: { [dir: string]: string; }, verbose?: boolean, multipleWatchers?: WatcherProcessData[]); watch(opts: { verbose?: boolean; }): Promise; get consumer(): Consumer; watchAll(): Promise; _handleChange(filePath: string, isNew?: boolean): Promise; isComponentWatchedExternally(componentId: BitId): boolean; _getBitIdByPathAndReloadConsumer(filePath: string, isNew: boolean): Promise; _getWatcher(): chokidar.FSWatcher; _getPathsToWatch(): string[]; } export {};