import type { GitClient } from "../ports/git.js"; import type { PathOps } from "../ports/paths.js"; import type { ReferenceCountResult } from "../operations/structural-review.js"; import type { ImportBindingDiagnostic } from "./import-diagnostic.js"; export interface ReferenceScanResult extends ReferenceCountResult { readonly warnings: readonly ImportBindingDiagnostic[]; readonly confidence: "complete" | "partial"; } export interface ImportReferenceImpactOptions { readonly cwd: string; readonly git: GitClient; readonly pathOps: PathOps; readonly symbolName: string; readonly filePath: string; readonly ref: string; } export interface ImportDiagnosticsOptions extends Pick { readonly candidateTargetFilePaths?: readonly string[] | undefined; } export interface CommittedReferenceAnalysis { readonly commitId: string; readonly diagnostics: readonly ImportBindingDiagnostic[]; readonly hasParseErrors: boolean; countReferences(symbolName: string, filePath: string): ReferenceScanResult; } export declare class IncompleteImportDiagnosticsError extends Error { readonly ref: string; readonly code = "import_diagnostics_incomplete"; constructor(ref: string); } export declare function analyzeCommittedReferencesAtRef(opts: ImportDiagnosticsOptions): Promise; export declare function scanQualifiedReferencesAtRef(opts: ImportReferenceImpactOptions): Promise; export declare function importDiagnosticsAtRef(opts: ImportDiagnosticsOptions): Promise<{ readonly ref: string; readonly diagnostics: readonly ImportBindingDiagnostic[]; readonly summary: string; }>; //# sourceMappingURL=committed-reference-scan.d.ts.map