/** * Import extraction for languages without an AST parser. * * Deliberately imports only — no call or type references. An import statement * has a rigid, line-anchored syntax that a regex reads correctly; a call site * does not, and a regex "call graph" produces edges that look authoritative * while being mostly wrong. Dependency edges are what the Code Atlas is built * around, so extracting those well beats extracting everything badly. * * Languages with a real parser (TS/JS via the compiler API, Go and Python via * their own `ast` modules) never reach this module. */ import type { Ref, SymbolLang } from './schema.js'; /** True when this language's imports are extracted here rather than by a parser. */ export declare function hasImportPatterns(lang: SymbolLang): boolean; /** * Extract `import` refs from source text. Never throws. * * Returned refs carry `fromId: 0`; the indexer rewrites it to the owning symbol. */ export declare function extractImports(opts: { content: string; lang: SymbolLang; maxImports?: number; }): Ref[]; //# sourceMappingURL=import-extractor.d.ts.map