/** * Performance Analysis Handler * * Handles performance anti-pattern detection */ import type { MCPToolResult } from "../../types/mcp-types.js"; import type { PerformanceCategory } from "../../types/performance.js"; /** * MCP handler for performance anti-pattern detection tools. * * Provides tools to scan code for performance issues, list known patterns, * get fix suggestions, and record performance corrections for learning. */ export declare class PerformanceAnalysisHandler { private projectRoot; private performanceAnalyzer; /** * @param projectRoot - Root directory of the project to analyze */ constructor(projectRoot: string); /** * Analyze files for performance issues */ handleAnalyzePerformance(args: { files: string[]; }): Promise; /** * List all performance patterns */ handleListPatterns(): Promise; /** * Add custom pattern */ handleAddPattern(args: { name: string; category: PerformanceCategory; description: string; regex: string; contextRegex?: string; severity: "info" | "warning" | "error"; suggestion: string; filePatterns?: string[]; }): Promise; /** * Disable a pattern */ handleDisablePattern(args: { patternName: string; }): Promise; /** * Enable a pattern */ handleEnablePattern(args: { patternName: string; }): Promise; /** * Get category icon */ private getCategoryIcon; /** * Get severity icon */ private getSeverityIcon; /** * Format category name */ private formatCategoryName; } //# sourceMappingURL=performance-analysis-handler.d.ts.map