/** * Coding Standards Generator - SOLID Principles Implementation * Single Responsibility: Generate and update .codeseeker/coding-standards.json * Open/Closed: Extensible for new pattern categories * Dependency Inversion: Depends on storage abstractions */ import { IVectorStore } from '../../../storage/interfaces'; export interface CodingStandards { generated_at: string; project_id: string; project_path: string; standards: { [category: string]: CategoryStandards; }; } export interface CategoryStandards { [subcategory: string]: PatternStandard; } export interface PatternStandard { preferred: string; import?: string; usage_count: number; files: string[]; confidence: 'high' | 'medium' | 'low'; rationale: string; example?: string; alternatives?: Array<{ pattern: string; usage_count: number; recommendation: string; }>; } export declare class CodingStandardsGenerator { private vectorStore; private standardsCache; constructor(vectorStore: IVectorStore); /** * Generate coding standards file at project init */ generateStandards(projectId: string, projectPath: string): Promise; /** * Update standards incrementally when files change */ updateStandards(projectId: string, projectPath: string, changedFiles: string[]): Promise; /** * Get cached standards or load from file */ getStandards(projectId: string, projectPath: string): Promise; /** * Detect which pattern categories are affected by file changes */ private detectAffectedCategories; /** * Analyze a single category */ private analyzeCategory; /** * Format category patterns into standards format */ private formatCategoryStandards; /** * Create a subcategory key from pattern name */ private createSubcategoryKey; } //# sourceMappingURL=coding-standards-generator.d.ts.map