import { HTTPResponse, HTTPErrorResponse, HeadersInit } from '@md-oss/common/http/types'; import { DefaultHeadersResolver, HttpRequestRetryOptions, HttpClientConfig, HTTPClientRequestOptions } from './types.mjs'; export { HttpRequestOptions, ParseRateLimitDelayMs, QueryPrimitive, QueryValue, RetryEvaluationInput, RetryHook, RetryHookContext } from './types.mjs'; export { HTTPError, HTTPErrorResponse, HTTPResponse, HTTPSuccessResponse, HeadersInit, StatusCode, StatusCodeText, createHTTPError, createHTTPErrorResponse, isHTTPError, isHTTPErrorResponse, isStatusCodeText, mergeHeaders, normalizeHeaders, parseError, parseHeaders, resolveStatusCode, resolveStatusText, statusCodes, stripProxyAndWebsocketHeaders } from '@md-oss/common/http'; export { JsonPrimitive, JsonValueLike, SerializedJson, serializeJson } from '@md-oss/serdes'; export { appendQuery, buildUrl, parseErrorResponse, resolvePathParams, resolveRequestHeaders, toBody } from './resolvers.mjs'; export { DEFAULT_CAP_RATE_LIMIT_DELAY_TO_MAX_DELAY_MS, DEFAULT_RETRIES, DEFAULT_RETRYABLE_METHODS, DEFAULT_RETRY_BACKOFF_FACTOR, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_JITTER_RATIO, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_RETRY_STATUSES, DEFAULT_TIMEOUT_MS, defaultParseRateLimitDelayMs, defaultRetryOptions, evaluateRetry, isRetryableNetworkError, withBackoffAndJitter } from './retry.mjs'; type HTTPClientResponse> = R extends HTTPErrorResponse ? HTTPErrorResponse & { /** The original Response object from the Fetch API (cloned). May be null if the error was due to a network failure. */ raw: Response | null; } : R & { /** The original Response object from the Fetch API (cloned). */ raw: Response; }; declare class HttpClient { readonly baseUrl: string; readonly serviceName: string; readonly defaultHeaders?: HeadersInit | DefaultHeadersResolver; readonly defaultRetryOptions?: HttpRequestRetryOptions; private readonly staticDefaultHeaders; private readonly defaultHeadersResolver?; constructor(config: HttpClientConfig); private getDefaultHeaders; request(input: string, options: HTTPClientRequestOptions): Promise>>; } declare const createHttpClient: (config: HttpClientConfig) => HttpClient; export { DefaultHeadersResolver, HTTPClientRequestOptions, HttpClient, HttpClientConfig, HttpRequestRetryOptions, createHttpClient }; export type { HTTPClientResponse }; //# sourceMappingURL=index.d.mts.map