import { InventoryData, StructuralDuplicationSummary } from '../types'; export interface PatternIndexLocation { file: string; line: number; } export interface PatternIndexEntry { normalized: string; locations: PatternIndexLocation[]; } export interface PatternIndex { version: 1; generatedAt: string; windowSize: number; fingerprints: Record; } /** * Generates a pattern-index.json artifact that maps normalized code block * fingerprints to their source locations. Used by the structural-duplication * guard for cross-file pattern matching. */ export declare function generatePatternIndex(inventory: InventoryData, targetDir: string): PatternIndex; /** * Analyzes a PatternIndex to produce a human-readable summary of * existing structural duplication across the project. */ export declare function analyzePatternIndex(index: PatternIndex): StructuralDuplicationSummary;