/** * Clears all import-scanning caches (direct imports, recursive results, and filesystem stats). * Should be called when watched files change so that rescanning picks up updated imports. */ export declare function clearImportPathsCache(): void; /** * Extracts import paths from a source file. * Supports JavaScript, TypeScript, and Rust files. * Results are cached per file path to avoid redundant I/O. * * @param filePath - Path to the file to analyze. * @returns Array of absolute paths to imported files. */ export declare function extractImportPaths(filePath: string): string[]; /** * Recursively extracts import paths from a source file and all its dependencies. * Supports JavaScript, TypeScript, and Rust files. * Handles circular dependencies by tracking visited files. * * @param filePath - Path to the file to analyze. * @param visited - Set of already visited files to prevent infinite recursion. * @returns Array of absolute paths to the provided file and all imported files there (including nested imports). * @throws If an unexpected error occurs while processing files (not including ENOENT file not found errors). */ export declare function extractImportPathsRecursively(filePath: string, visited?: Set): string[]; /** * Returns diagnostic information about the import scanning caches. * Useful for debugging performance issues with --verbose. * * @returns Cache size stats for directImports, fileExists, and isDir. */ export declare function getImportScanningCacheStats(): { directImports: number; fileExists: number; isDir: number; }; /** * Extracts import paths from a JavaScript content. * * @param content - The content to extract imports from. * @param filePath - The path to the file to extract imports from. * @returns Array of absolute paths to imported files. */ export declare function extractJSImports(content: string, filePath: string): string[];