/** * File watcher for watch command * * Uses chokidar to monitor Claude Code project directories for JSONL changes. */ import type { FSWatcher } from "chokidar"; /** * Event types emitted by the watcher */ export type WatcherEvents = { type: "add" | "change"; filePath: string; }; /** * Create a file watcher for JSONL files * * @param args - Configuration arguments * @param args.watchDir - Directory to watch * @param args.onEvent - Callback for file events * * @returns The watcher instance */ export declare const createWatcher: (args: { watchDir: string; onEvent: (event: WatcherEvents) => void; }) => FSWatcher; /** * Wait for the watcher to be ready */ export declare const waitForWatcherReady: () => Promise; /** * Stop the file watcher */ export declare const stopWatcher: () => void; /** * Check if a watcher is active * * @returns True if a watcher is running, false otherwise */ export declare const isWatcherActive: () => boolean; //# sourceMappingURL=watcher.d.ts.map