/**
 * API Utilities
 *
 * Error handling patterns for API calls.
 * With oRPC, responses return data directly - no response unwrapping needed.
 */
import type { MarketrixConfig } from '../types';
/**
 * Check if error is a connection/network error
 * Consolidates the repeated pattern across widgetValidationService and other services
 */
export declare function isConnectionError(error: unknown): boolean;
/**
 * Extract error message from unknown error type
 * Consolidates error instanceof Error ? error.message : String(error)
 */
export declare function extractErrorMessage(error: unknown, fallback?: string): string;
/**
 * Handle API error with consistent error message extraction
 */
export declare function handleApiError(error: unknown, context?: string, config?: Partial<MarketrixConfig>): {
    isValid: false;
    error: string;
};
//# sourceMappingURL=apiUtils.d.ts.map