/** * Fetcher class - Static methods for HTTP fetching with retry logic */ import type { HttpsProxyAgent } from 'https-proxy-agent'; import type { SocksProxyAgent } from 'socks-proxy-agent'; import { ErrorCategory, type RetryConfig, type FetchResult, type RequestMethod } from './types.js'; /** * Static class for HTTP fetch operations with retry logic */ export declare class Fetcher { /** * Fetch a URL with retry logic */ static fetch(url: string, options?: { method?: RequestMethod; headers?: Record; body?: string | object; timeout?: number; proxy?: HttpsProxyAgent | SocksProxyAgent; retryConfig?: RetryConfig; followRedirects?: boolean; signal?: AbortSignal; }): Promise; /** * Single fetch attempt */ private static singleFetch; private static classifyResponse; private static buildResponseErrorMessage; /** * Categorize an error for reporting */ static categorizeError(error: Error): ErrorCategory; /** * Get default headers */ static get defaultHeaders(): Record; /** * Get default retry config */ static get defaultRetryConfig(): Required; private static sleep; }