/// import { Filename, PortablePath, Watcher, WatchCallback } from '@yarnpkg/fslib'; import { EventEmitter } from 'events'; import { ResolvedPath } from './resolveNodeModulesPath'; declare class WatchEventEmitter extends EventEmitter { private dirWatchers; private watchPath; private watcherId; constructor(dirWatchers: DirectoryWatcherMap, watchPath: PortablePath, watcherId: number); close(): void; } type DirectoryWatcherMap = Map; interface DirectoryWatcher { eventEmitters: Map; dirEntries: Set; } export declare class WatchManager extends EventEmitter { private readonly dirWatchers; private lastWatcherId; registerWatcher(watchPath: PortablePath, dirList: Set, callback: WatchCallback): WatchEventEmitter; notifyWatchers(resolvePath: (nodePath: PortablePath) => ResolvedPath): void; } export {};