/** * HTTP Client implementation for React Native * * This implementation properly implements the core SDK's HttpClient interface * and uses fetch API which is available in React Native. */ /** * Request options for HTTP client operations * * @interface RequestOptions * @property {Record} [headers] - HTTP headers to include * @property {Record} [params] - URL parameters * @property {number} [timeout] - Request timeout in milliseconds * @property {'json' | 'blob' | 'text' | 'arraybuffer'} [responseType] - Expected response type */ export interface RequestOptions { headers?: Record; params?: Record; timeout?: number; responseType?: 'json' | 'blob' | 'text' | 'arraybuffer'; } /** * HTTP Client interface for React Native * * @interface HttpClient * @template T - Response type */ export interface HttpClient { get(url: string, options?: RequestOptions): Promise; post(url: string, body: any, options?: RequestOptions): Promise; put(url: string, body: any, options?: RequestOptions): Promise; delete(url: string, options?: RequestOptions): Promise; } export declare class ReactNativeHttpClient implements HttpClient { private baseURL?; constructor(baseURL?: string); get(url: string, options?: RequestOptions): Promise; post(url: string, body?: any, options?: RequestOptions): Promise; put(url: string, body?: any, options?: RequestOptions): Promise; delete(url: string, options?: RequestOptions): Promise; private request; private buildUrl; } //# sourceMappingURL=react-native-http-client.d.ts.map