/** * Import extractor - extracts import declarations */ import type { Tree } from 'web-tree-sitter'; import type { ImportInfo, SupportedLanguage } from '../../types/index.js'; import { type NodeCache } from '../parser.js'; /** * Extract all imports from the tree. * * `cache` (added in 3.172.0, cognium-dev#254 T2-C): when provided, per- * language `findNodes` walks (import_statement / import_declaration / * import_from_statement / use_declaration / call_expression for * CommonJS `require`) are replaced with O(1) cache lookups populated by * `collectAllNodes` at analyzer entry. Falls back to `findNodes` when * cache is absent (test / library callers). */ export declare function extractImports(tree: Tree, language?: SupportedLanguage, cache?: NodeCache): ImportInfo[]; //# sourceMappingURL=imports.d.ts.map