/** * File watcher service using chokidar for real-time workspace updates. * Emits events when files in the workspace change. */ import { EventEmitter } from "events"; export interface FileWatcherOptions { /** Debounce delay in milliseconds */ debounceMs?: number; /** Whether to emit events for initial files */ ignoreInitial?: boolean; } export declare class FileWatcher extends EventEmitter { private workspacePath; private watcher; private options; constructor(workspacePath: string, options?: FileWatcherOptions); /** * Start watching the workspace for file changes. */ start(): void; /** * Stop watching the workspace. */ stop(): Promise; /** * Handle a file system event and emit a typed FileChangeEvent. */ private handleEvent; /** * Determine which workspace area a file belongs to based on its path. */ private determineArea; /** * Check if the watcher is currently active. */ isWatching(): boolean; } export declare function getFileWatcher(workspacePath: string, options?: FileWatcherOptions): FileWatcher; export declare function stopFileWatcher(): Promise;