export declare class ApiError extends Error { statusCode: number; constructor(statusCode: number, message: string); } export declare class RetryableError extends Error { constructor(message: string); } export declare class JsonSageError extends Error { code: string; details?: any | undefined; constructor(message: string, code: string, details?: any | undefined); } export declare function safeJsonParse(data: string): { success: boolean; data?: any; error?: Error; }; export declare function safeExecute(fn: () => Promise | T, errorMessage?: string): Promise<{ success: boolean; data?: T; error?: Error; }>; export declare function retryWithBackoff(operation: () => Promise, options?: { maxRetries?: number; initialDelay?: number; maxDelay?: number; shouldRetry?: (error: any) => boolean; }): Promise; export declare function handleApiError(error: any): never;