import { type BlossomRetryOptions } from "../types"; import { type Logger } from "./logger"; /** * Make an HTTP request with retry capability * * @param url URL to fetch * @param options Fetch options * @param retryOptions Retry configuration * @param logger Logger instance * @returns Fetch response */ export declare function fetchWithRetry(url: string, options?: RequestInit, retryOptions?: Partial, logger?: Logger): Promise; /** * Make a HEAD request to check if a resource exists * * @param url URL to check * @param options Fetch options * @param retryOptions Retry configuration * @returns true if resource exists (2xx status), false otherwise */ export declare function checkResourceExists(url: string, options?: RequestInit, retryOptions?: Partial): Promise; /** * Check if a Blossom server has a blob by its hash * * @param serverUrl Base URL of the server * @param hash SHA256 hash of the blob * @param retryOptions Retry configuration * @returns true if the blob exists, false otherwise */ export declare function checkBlobExists(serverUrl: string, hash: string, retryOptions?: Partial): Promise; /** * Extract JSON from a response with error handling * * @param response Fetch Response object * @param serverUrl Original server URL for error context * @returns Parsed JSON data */ export declare function extractResponseJson(response: Response, serverUrl: string): Promise; //# sourceMappingURL=http.d.ts.map