/** * @fileoverview Typed HTTP client with error handling and validation. * @module meteo-lt-sdk/client/http */ import type { z } from 'zod'; import type { ResolvedMeteoClientConfig } from './config.js'; /** * Internal HTTP client for making API requests. * Handles error mapping, timeouts, and response validation. */ export declare class HttpClient { private readonly config; constructor(config: ResolvedMeteoClientConfig); /** * Makes a GET request and validates the response. * @param path - API endpoint path (relative to base URL) * @param schema - Zod schema for response validation * @returns Validated and typed response data * @throws {MeteoNotFoundError} When the resource is not found (404) * @throws {MeteoRateLimitError} When rate limit is exceeded (429) * @throws {MeteoApiError} For other HTTP errors * @throws {MeteoNetworkError} For network failures * @throws {MeteoTimeoutError} When request times out * @throws {MeteoValidationError} When response doesn't match schema */ get(path: string, schema: z.ZodType): Promise; /** * Builds full URL from path. */ private buildUrl; /** * Maps HTTP error responses to specific error types. */ private handleHttpError; } //# sourceMappingURL=http.d.ts.map