import { CancellationToken } from '../../../../../base/common/cancellation'; import { Disposable } from '../../../../../base/common/lifecycle'; import { IDiskFileChange, ILogMessage, IWatchRequest, IRecursiveWatcher } from '../../../../../platform/files/common/watcher'; export interface IParcelWatcherInstance { /** * Signals when the watcher is ready to watch. */ readonly ready: Promise; /** * The watch request associated to the watcher. */ readonly request: IWatchRequest; /** * How often this watcher has been restarted in case of an unexpected * shutdown. */ readonly restarts: number; /** * The cancellation token associated with the lifecycle of the watcher. */ readonly token: CancellationToken; /** * Stops and disposes the watcher. This operation is async to await * unsubscribe call in Parcel. */ stop(): Promise; } export declare class ParcelWatcher extends Disposable implements IRecursiveWatcher { private static readonly MAP_PARCEL_WATCHER_ACTION_TO_FILE_CHANGE; private static readonly GLOB_MARKERS; private static readonly PARCEL_WATCHER_BACKEND; private readonly _onDidChangeFile; readonly onDidChangeFile: import("../../../../../base/common/event").Event; private readonly _onDidLogMessage; readonly onDidLogMessage: import("../../../../../base/common/event").Event; private readonly _onDidError; readonly onDidError: import("../../../../../base/common/event").Event; protected readonly watchers: Map; private verboseLogging; private enospcErrorLogged; constructor(); private registerListeners; watch(requests: IWatchRequest[]): Promise; protected toExcludePaths(path: string, excludes: string[] | undefined): string[] | undefined; private startPolling; private startWatching; private onParcelEvents; private handleExcludes; private emitEvents; private normalizePath; private normalizeEvents; private filterEvents; private onWatchedPathDeleted; private onUnexpectedError; stop(): Promise; protected restartWatching(watcher: IParcelWatcherInstance, delay?: number): void; private stopWatching; protected normalizeRequests(requests: IWatchRequest[]): IWatchRequest[]; private isPathIgnored; setVerboseLogging(enabled: boolean): Promise; private trace; private warn; private error; private toMessage; } //# sourceMappingURL=parcelWatcher.d.ts.map