import { MultiDbManager } from '../core/multi-db-manager'; import { Adr } from '../models/adr'; import { Module } from '../models/module'; /** * ADR Pattern extracted from existing ADRs */ export interface AdrPattern { patternType: string; modulePath: string; adrNumber: string; adrTitle: string; sections: Map; structure: AdrStructure; } /** * ADR Structure template */ export interface AdrStructure { requiredSections: string[]; optionalSections: string[]; sectionOrder: string[]; commonPatterns: string[]; } /** * Pattern mapping: pattern type → ADR structure */ export interface AdrPatternMap { patterns: Map; structureTemplates: Map; } /** * Analyzes existing ADRs to extract patterns and create structure templates. * Used for deterministic ADR reconstruction. */ export declare class AdrPatternAnalyzer { private dbManager; constructor(dbManager: MultiDbManager); /** * Analyzes all ADRs and extracts patterns. */ analyzeAdrPatterns(pluginId: string): Promise; /** * Extracts patterns from an ADR and its associated module. */ extractPatternsFromAdr(adr: Adr, module: Module): AdrPattern; /** * Finds similar ADR patterns for a target module. */ findSimilarAdrPatterns(targetModule: Module, pluginId: string): Promise; /** * Builds a structure template from a list of patterns. */ buildPatternTemplate(patterns: AdrPattern[]): AdrStructure; /** * Detects pattern type from file path. */ private detectPatternType; /** * Extracts sections from ADR markdown content. */ private extractSections; /** * Analyzes ADR structure from markdown content. */ private analyzeStructure; /** * Determines the most common section order from patterns. */ private determineSectionOrder; /** * Extracts common patterns from pattern content. */ private extractCommonPatterns; } //# sourceMappingURL=adr-pattern-analyzer.d.ts.map