/** * HTTP client for CortexDB API * * Handles all HTTP requests with automatic error handling, * timeout management, and status code mapping to specific exceptions. */ /** * HTTP client for making requests to CortexDB API */ export declare class HTTPClient { private baseUrl; private apiKey?; private timeout; /** * Create a new HTTP client * * @param baseUrl - Base URL of the CortexDB gateway * @param apiKey - Optional API key for authentication * @param timeout - Request timeout in milliseconds (default: 1800000 for large file uploads) */ constructor(baseUrl: string, apiKey?: string, timeout?: number); /** * Make a GET request * * @param path - API endpoint path * @returns Response data */ get(path: string): Promise; /** * Make a POST request * * @param path - API endpoint path * @param body - Request body * @returns Response data */ post(path: string, body?: any): Promise; /** * Make a PUT request * * @param path - API endpoint path * @param body - Request body * @returns Response data */ put(path: string, body?: any): Promise; /** * Make a PATCH request * * @param path - API endpoint path * @param body - Request body * @returns Response data */ patch(path: string, body?: any): Promise; /** * Make a DELETE request * * @param path - API endpoint path * @returns Response data */ delete(path: string): Promise; /** * Internal method to make HTTP requests * * @param method - HTTP method * @param path - API endpoint path * @param body - Optional request body * @returns Response data * @throws {CortexDBError} Various error types based on HTTP status codes */ private request; } //# sourceMappingURL=client.d.ts.map