interface ErrorResult { success: boolean; fullName?: string; errors?: Array<{ message: string; statusCode?: string; fields?: string | string[]; }> | { message: string; statusCode?: string; fields?: string | string[]; }; } /** * Check if error indicates token expiration or session invalidity */ export declare function isTokenExpiredError(error: any): boolean; /** * Check if error indicates OAuth-specific issues */ export declare function isOAuthError(error: any): boolean; /** * Handle connection errors with automatic retry logic */ export declare function handleConnectionError(error: any, connection: any, retryFn: () => Promise, maxRetries?: number): Promise; /** * Custom error class for connection-related issues */ export declare class ConnectionError extends Error { readonly code: string; readonly requiresReauth: boolean; constructor(message: string, code: string, requiresReauth?: boolean); } /** * Create user-friendly error message for authentication failures */ export declare function formatAuthenticationError(error: any): string; /** * Determine if operation should be retried based on error type */ export declare function shouldRetryOperation(error: any): boolean; export declare function formatMetadataError(result: ErrorResult | ErrorResult[], operation: string): string; export {};