/** * ErrorWithCode - Extended Error class with error code * Provides structured error information for better handling */ export declare class ErrorWithCode extends Error { code: string; details?: Record | undefined; constructor(message: string, code: string, details?: Record | undefined); } /** * Safely handles agent errors to prevent process crashes * @param error The error to handle * @param context Additional context for logging * @returns Normalized error object */ export declare function handleAgentError(error: unknown, context?: string): ErrorWithCode; /** * Error response structure for agent errors */ export interface AgentErrorResponse { success: false; error: { code: string; message: string; details?: Record; }; } /** * Creates a standardized error response */ export declare function createErrorResponse(error: unknown): AgentErrorResponse; //# sourceMappingURL=error-handler.d.ts.map