import * as fs from 'node:fs'; import type { Compiler } from '@rspack/core'; interface FileEventAssistOptions { platform?: NodeJS.Platform; watchFile?: (file: string, listener: (type: string) => void) => fs.FSWatcher; pollFolder?: (folder: string, onChange: () => void) => () => void; maxWatches?: number; } export declare class FileEventAssistPlugin { static readonly name = "dev-server:file-event-assist"; private readonly platform; private readonly maxWatches; private readonly watchFile; private readonly pollFolder; private readonly watches; private readonly polls; constructor(options?: FileEventAssistOptions); private roots; private forward; private open; private close; private syncFolders; private sync; apply(compiler: Compiler): void; } export {};