import { Session } from './Session'; /** * Error details extracted from LLM service errors */ export interface LLMErrorDetails { message: string; type: string; code: string | null; param: string | null; status: number | null; request_id: string | null; recoverable: boolean; } /** * Handler for LLM service errors * Provides utilities for extracting error details and handling errors gracefully */ export declare class LLMErrorHandler { /** * Extract detailed information from LLM service errors */ static extractErrorDetails(error: any): LLMErrorDetails; /** * Handle LLM service errors in a graceful way * @param error The error object from the LLM service * @param session The current session * @returns A string representation of the error that can be used as a response */ static handleError(error: any, session: Session): Promise; }