import { AntriConfig, ToolCall, ToolResult } from '../types.js'; export interface DebugRepairResult { repaired: boolean; attempts: number; rootCause: string; repairedArgs?: Record; repairedResult?: ToolResult; fixSummary: string; } export interface AntriDiagnosis { isError: boolean; blockingBug: string; component: 'provider' | 'network' | 'auth' | 'filesystem' | 'configuration' | 'session' | 'tool' | 'runtime'; technicalDetails: string; recommendedFix: string; quickActions?: Array<{ label: string; command?: string; }>; autoHealed: boolean; healedMessage?: string; } export declare class SelfDebugger { /** * Autonomous Self-Debugging Loop: Diagnoses failures, generates patches, and auto-retries */ static autoDebugAndRepair(toolCall: ToolCall, failedResult: ToolResult, config: AntriConfig, executeFn: (name: string, args: Record, callId: string) => Promise, maxRetries?: number): Promise; /** * Diagnoses internal errors, network failures, or API crashes blocking ANTRI */ static diagnoseAntriError(error: any, config: AntriConfig): AntriDiagnosis; /** * Robust ANTRI Error Boundary: Diagnoses blocking bugs, attempts auto-healing, * renders diagnostic report, and cleanly returns to message loop without crashing. */ static handleAntriError(error: any, config: AntriConfig, suppressLog?: boolean): Promise<{ healed: boolean; diagnosis: AntriDiagnosis; fallbackResponse: string; }>; /** * Formats and prints a clean diagnostic box in the terminal */ static renderDiagnosticReport(diagnosis: AntriDiagnosis): void; /** * Full ANTRI Health & Self-Healing Doctor */ static runSelfDoctor(config: AntriConfig): Promise<{ healthy: boolean; issues: string[]; repairedCount: number; }>; /** * Runs diagnostic reasoning to pinpoint failure cause and generate fixed parameters */ private static diagnoseRootCause; private static heuristicPatch; } //# sourceMappingURL=debugger.d.ts.map