export interface TelemetryEntry { timestamp: string; tool: string; args: Record; durationMs: number; outputChars: number; estimatedOutputTokens: number; success: boolean; error?: string; } export interface ToolStats { tool: string; calls: number; totalOutputChars: number; estimatedOutputTokens: number; avgOutputChars: number; avgDurationMs: number; errors: number; } export interface TelemetryAnalysis { totalCalls: number; successfulCalls: number; failedCalls: number; callsByTool: Record; totalOutputChars: number; estimatedTotalTokens: number; avgResponseChars: number; toolStats: ToolStats[]; largestResponses: TelemetryEntry[]; lastCalls: TelemetryEntry[]; excessiveOutputWarnings: Array<{ tool: string; outputChars: number; estimatedOutputTokens: number; timestamp: string; }>; savingsOpportunities: string[]; recommendations: string[]; } export declare const TELEMETRY_DIR = ".mcp-telemetry"; export declare const TELEMETRY_LOG_FILE = ".mcp-telemetry/logs.jsonl"; export declare const TELEMETRY_REPORT_FILE = ".mcp-telemetry/report.md"; export declare function getTelemetryLogFile(): string; export declare function getTelemetryReportFile(): string; export declare const MAX_ARG_STRING_LENGTH = 500; export declare const EXCESSIVE_OUTPUT_CHARS = 20000; export declare const EXCESSIVE_OUTPUT_TOKENS: number;