/** * Discovery cache for incremental rebuilds. * * Tracks file mtimes and file→entity mappings so that only changed files * need to be re-imported during watch-mode rebuilds. */ export declare class DiscoveryCache { private files; /** * Check if a file has changed since it was last tracked. * Returns true if the file is new or its mtime has changed. */ hasFileChanged(filePath: string): boolean; /** * Record a successful import, storing the file's mtime and entity names. */ trackFileImport(filePath: string, mtime: number, entityNames: string[]): void; /** * Invalidate cache entries for the given files. * Returns the set of entity names that were invalidated. */ invalidate(changedFiles: string[]): Set; /** * Get all tracked file paths. */ trackedFiles(): string[]; /** * Get entity names for a tracked file. */ getFileEntities(filePath: string): string[] | undefined; /** * Clear all cached data. */ clear(): void; } //# sourceMappingURL=cache.d.ts.map