/** * Code Quality Handler * * Handles code quality analysis and smell detection operations */ import type { MCPToolResult } from "../../types/mcp-types.js"; import type { SmellSeverity } from "../../types/code-quality.js"; /** * MCP handler for code quality analysis tools. * * Provides tools to analyze code quality, detect code smells, * calculate complexity metrics, find duplicates, and suggest refactorings. */ export declare class CodeQualityHandler { private projectRoot; private qualityService; /** * @param projectRoot - Root directory of the project to analyze */ constructor(projectRoot: string); /** * Analyze code quality */ handleAnalyze(args: { files?: string[]; minSeverity?: SmellSeverity; maxSmells?: number; }): Promise; /** * Calculate complexity metrics */ handleComplexity(args: { files?: string[]; threshold?: number; }): Promise; /** * Find duplicate code */ handleDuplicates(args: { files?: string[]; }): Promise; /** * Suggest refactorings */ handleRefactor(args: { files?: string[]; }): Promise; /** * Get grade emoji */ private getGradeEmoji; /** * Get rating emoji */ private getRatingEmoji; /** * Get severity emoji */ private getSeverityEmoji; /** * Get effort emoji */ private getEffortEmoji; /** * Format smell type */ private formatSmellType; /** * Format refactoring type */ private formatRefactoringType; } //# sourceMappingURL=code-quality-handler.d.ts.map