/** * File system watcher for detecting changes */ import type { FileChangeEvent } from './types.js'; export interface FileWatcherOptions { basePath: string; includePatterns?: string[]; excludePatterns?: string[]; respectGitignore?: boolean; useMcpignore?: boolean; debounceDelay?: number; onFileChange: (event: FileChangeEvent) => void; onError?: (error: Error) => void; } /** * File watcher using chokidar */ export declare class FileWatcher { private options; private watcher; private fileFilter; private isWatching; private debounceTimers; constructor(options: FileWatcherOptions); /** * Start watching files */ start(): Promise; /** * Stop watching files */ stop(): Promise; /** * Check if file should be ignored */ private shouldIgnoreFile; /** * Handle file change event with debouncing */ private handleFileChange; /** * Handle watcher error */ private handleError; /** * Check if watching */ isActive(): boolean; /** * Get watched paths count */ getWatchedPaths(): string[]; } //# sourceMappingURL=file-watcher.d.ts.map