import fs from "node:fs"; //#region src/cli/commands/watch.d.ts interface WatchOptions { inputs: string[]; output: string | undefined; zodCompat?: boolean | undefined; compact?: boolean | undefined; autoDiscover?: boolean | undefined; } /** Dependencies for runWatch, injectable for testing. */ interface WatchDeps { createWatcher: (dir: string, options: { recursive: boolean; signal: AbortSignal; }, callback: (event: string, filename: string | null) => void) => fs.FSWatcher; } /** * Check if a file path should trigger regeneration. */ declare function isWatchTarget(filePath: string): boolean; /** * Resolve which directories to watch from input paths. * Files are mapped to their parent directory; subdirectories are deduplicated. */ declare function resolveWatchDirs(inputs: string[]): string[]; /** * Create a debounced version of a function. */ declare function debounce void>(fn: T, delayMs: number): T; /** * Run the watch mode: initial generate + fs.watch for changes. */ declare function runWatch(options: WatchOptions, deps?: WatchDeps): Promise; //#endregion export { WatchDeps, debounce, isWatchTarget, resolveWatchDirs, runWatch }; //# sourceMappingURL=watch.d.ts.map