export declare class AgentError extends Error { readonly code: string; readonly details: Record; constructor(message: string, code: string, details?: Record); toJSON(): { name: string; code: string; message: string; details: Record; }; } export declare class AgentBudgetError extends AgentError { constructor(cost: number, limit: number); } export declare class AgentIterationError extends AgentError { constructor(iterations: number, maxIterations: number); } export declare class ToolExecutionError extends AgentError { constructor(toolName: string, reason: string); } export declare class ToolPermissionError extends AgentError { constructor(toolName: string, requiredRole: string, userRole: string); } export declare class ToolNotFoundError extends AgentError { constructor(toolName: string); } export declare function parseAgentError(data: { error?: { code?: string; message?: string; details?: Record; }; }): AgentError; //# sourceMappingURL=error-types.d.ts.map