import { type DirectoryKnowledge } from "./knowledge-map.js"; import type { RiskLevel } from "./risk-classifiers.js"; import type { FileHotspot } from "../git/types.js"; export interface CoordinationBottleneckEntry { directory: string; changeCount: number; uniqueAuthors: number; dominantAuthorPct: number; coordinationScore: number; riskLevel: RiskLevel; } /** * Compute coordination bottleneck scores per directory. * * Combines knowledge map (contributors per directory) with hotspot data * (change frequency) to identify directories where many authors change * code frequently — indicating high coordination cost. * * coordinationScore = changeCount * uniqueAuthors * (1 - dominantAuthorPct/100) */ export declare function computeCoordinationBottlenecks(knowledgeMap: DirectoryKnowledge[], hotspots: FileHotspot[], depth: number, topN: number): CoordinationBottleneckEntry[];