/** * Watch Mode - Enhanced file watcher with smart change detection. * Watches test files, source files, and trace directories. * Re-runs only affected tests when possible. */ import type { ReportFormat, SuiteResult } from './types'; export interface SmartWatchOptions { paths: string[]; format?: ReportFormat; updateSnapshots?: boolean; tags?: string[]; debounceMs?: number; onResult?: (result: SuiteResult) => void; } export interface WatchEvent { type: 'change' | 'add' | 'remove'; path: string; timestamp: string; } export interface WatchSession { events: WatchEvent[]; runs: number; passed: number; failed: number; startedAt: string; } /** * Determine which suite files are affected by a changed file. */ export declare function findAffectedSuites(changedFile: string, suitePaths: string[]): string[]; /** * Format a watch event for display. */ export declare function formatWatchEvent(event: WatchEvent): string; /** * Format the watch session summary. */ export declare function formatWatchSession(session: WatchSession): string; /** * Start smart watch mode. * Returns a cleanup function to stop watching. */ export declare function startSmartWatch(opts: SmartWatchOptions): { stop: () => void; session: WatchSession; }; //# sourceMappingURL=watch.d.ts.map