import type { FSWatcher } from 'chokidar'; import type { Policy } from '../types.js'; import type { Snapshot } from './snapshot.js'; export interface WatcherStats { restored: number; blocked: number; events: Array<{ time: Date; event: string; path: string; action: 'restored' | 'blocked'; }>; } export interface WatcherOptions { rootDir: string; policy: Policy; snapshot: Snapshot; onRestore?: (path: string) => void; onBlock?: (path: string, event: string) => void; } /** * Create a filesystem watcher that auto-restores protected files */ export declare function createWatcher(options: WatcherOptions): { watcher: FSWatcher; stats: WatcherStats; }; //# sourceMappingURL=watcher.d.ts.map