/** * Bridge Connector for Semantic Code Analyzer * * Provides integration points between semantic code analyzer and other tools * Enables semantic analysis to enhance prompts, strategies, and other tools * * ## Extensibility Examples * * ### Adding a Custom Language * ```typescript * import { languageRegistry } from '../semantic-analyzer'; * * languageRegistry.register({ * name: 'Kotlin', * extensions: ['.kt'], * detect: (code) => code.includes('fun ') && code.includes('package'), * extractSymbols: (code) => { ... }, * extractDependencies: (code) => { ... } * }); * ``` * * ### Adding a Custom Pattern * ```typescript * import { patternRegistry } from '../semantic-analyzer'; * * patternRegistry.register({ * name: 'Repository Pattern', * description: 'Data access layer pattern', * detect: (code, language) => { * if (code.match(/class\s+\w+Repository/i)) { * return { * pattern: 'Repository Pattern', * description: 'Repository pattern for data access abstraction', * locations: ['Repository class detected'] * }; * } * return null; * } * }); * ``` */ /** * Integration helpers for semantic code analyzer with other tools */ /** * Enhance hierarchical prompts with semantic insights */ export declare function enhancePromptWithSemantics(semanticAnalysis: string, promptContext: string): string; /** * Generate code hygiene recommendations based on semantic analysis */ export declare function generateHygieneRecommendations(semanticAnalysis: string): string[]; /** * Extract semantic insights from analysis text */ export declare function extractSemanticInsights(analysisText: string): { structure: string; patterns: string[]; dependencies: string[]; symbols: string[]; }; /** * Create refactoring suggestions based on semantic analysis */ export declare function suggestRefactorings(semanticAnalysis: string): { priority: "high" | "medium" | "low"; suggestion: string; reason: string; }[]; /** * Generate security analysis prompt based on semantic insights */ export declare function generateSecurityAnalysisPrompt(semanticAnalysis: string): string; /** * Integration point for strategy frameworks */ export declare function integrateWithStrategyFrameworks(semanticAnalysis: string, _projectContext: string): { technicalDebt: string[]; architectureInsights: string[]; recommendations: string[]; }; //# sourceMappingURL=semantic-analyzer-bridge.d.ts.map