import { AnalysisCache } from '../scan/cache.js'; export type RouteChangeEvent = "add" | "change" | "unlink"; export type RouteChangeBatch = { events: Map; }; export type WatchRoutesOptions = { routesDir: string; entry?: string | undefined; ignore?: readonly string[] | undefined; debounceMs?: number | undefined; cache?: AnalysisCache | undefined; autoScaffold?: boolean | undefined; }; export declare function watchRoutes(options: WatchRoutesOptions, onChange: (batch: RouteChangeBatch) => Promise | void): { close: () => Promise; };