/** * Introspection Index Storage * * Manages file metadata for context-aware search boosting. * Handles saving and loading introspection data to/from disk. */ import type { FileIntrospection, ProjectStructure, Config } from "../../domain/entities"; /** * Introspection index for a workspace. */ export declare class IntrospectionIndex { private rootDir; private structure; private files; private config; constructor(rootDir: string); /** * Initialize by detecting project structure. */ initialize(): Promise; /** * Get project structure. */ getStructure(): ProjectStructure | null; /** * Introspect a file and add to index. * * @param filepath - Relative file path * @param content - Optional file content for framework detection * @param enableReadmeContext - Whether to look for README files (default: true) */ addFile(filepath: string, content?: string, enableReadmeContext?: boolean): FileIntrospection; /** * Get introspection for a file. */ getFile(filepath: string): FileIntrospection | undefined; /** * Get all introspected files. */ getAllFiles(): FileIntrospection[]; /** * Apply config overrides to introspection. */ private applyOverrides; /** * Save introspection index to disk. */ save(config: Config): Promise; /** * Load introspection index from disk. */ load(config: Config): Promise; /** * Recursively load file introspections. */ private loadFilesRecursive; /** * Clear the index. */ clear(): void; }