/** * Exact-mode TypeScript collector for declaration + cross-file reference * semantic facts (P2 MCP audit Phase 3 Task 3.3). * * Walks discovered project source files after call resolve, reusing the shared * {@link CrossPackageContext}, program/checker, {@link unaliasSymbol}, and * project-relative path helpers. Emits only cross-file references * (`referenceScope: 'cross-file'`). Fast mode never calls this — the plane is * omitted entirely there. * * Pure relative to the supplied program/files: no second Program, no extra * filesystem walker, no node_modules declaration retention. */ import { type SemanticFactBundle, type SemanticFactLimits } from '@opensip-cli/graph'; import ts from 'typescript'; import type { CrossPackageContext } from './edge-helpers/cross-package-context.js'; /** Inputs for {@link collectSemanticReferenceFacts}. */ export interface CollectSemanticFactsInput { readonly program: ts.Program; /** Absolute realpath-normalized discovered project source files. */ readonly discoveredFiles: readonly string[]; readonly projectRootAbs: string; readonly crossPackage: CrossPackageContext; readonly limits?: SemanticFactLimits; } /** * Collect bounded declaration + cross-file reference facts from an exact * TypeScript program. Always returns a PRESENT bundle (empty arrays + complete * coverage when nothing qualifies). */ export declare function collectSemanticReferenceFacts(input: CollectSemanticFactsInput): SemanticFactBundle; //# sourceMappingURL=semantic-reference-facts.d.ts.map