/** * Standard import path resolution. * Handles relative imports, path alias rewriting, and generic suffix matching. * Used as the fallback when language-specific resolvers don't match. */ import type { SuffixIndex } from './utils.js'; import { SupportedLanguages } from '../../../_shared/index.js'; import type { ImportResult, ImportResolverFn, ResolveCtx } from './types.js'; import type { TsconfigPaths } from '../language-config.js'; /** Max entries in the resolve cache. Beyond this, entries are evicted. * 100K entries ≈ 15MB — covers the most common import patterns. */ export declare const RESOLVE_CACHE_CAP = 100000; /** * Resolve an import path to a file path in the repository. * * Language-specific preprocessing is applied before the generic resolution: * - TypeScript/JavaScript: rewrites tsconfig path aliases * - Rust: converts crate::/super::/self:: to relative paths * * Java wildcards and Go package imports are handled separately in processImports * because they resolve to multiple files. */ export declare const resolveImportPath: (currentFile: string, importPath: string, allFiles: Set, allFileList: string[], normalizedFileList: string[], resolveCache: Map, language: SupportedLanguages, tsconfigPaths: TsconfigPaths | null, index?: SuffixIndex) => string | null; /** * Standard single-file resolution (TS/JS/C/C++ and fallback for other languages). * Handles relative imports, tsconfig path aliases, and suffix matching. */ export declare function resolveStandard(rawImportPath: string, filePath: string, ctx: ResolveCtx, language: SupportedLanguages): ImportResult; /** JavaScript: standard single-file resolution. */ export declare const resolveJavascriptImport: ImportResolverFn; /** TypeScript: standard single-file resolution. */ export declare const resolveTypescriptImport: ImportResolverFn; /** C: standard single-file resolution for #include directives. */ export declare const resolveCImport: ImportResolverFn; /** C++: standard single-file resolution for #include directives. */ export declare const resolveCppImport: ImportResolverFn;