import type { ClientResponse } from "./types_internal.js"; /** * Fetches a JSON response from the given request with retry logic. * * @template TOk - The type of the successful response data. * @template TErr - The type of the error response data. * @param {Request} request - The request to fetch. * @param {boolean} [retryRequest=true] - Whether to retry the request on failure. * @param {number[]} [delays=[1000, 3000]] - The delays between retries in milliseconds. * @returns {Promise>} A promise that resolves to a ClientResponse object. */ export declare const fetchRetry: (request: Request, retryRequest?: boolean, delays?: number[]) => Promise>; /** * Fetches a JSON response from the given request. * * @template TOk - The type of the successful response data. * @template TErr - The type of the error response data. * @param {Request} request - The request to fetch. * @returns {Promise>} A promise that resolves to a ClientResponse object. */ export declare const fetchJSON: (request: Request) => Promise>; //# sourceMappingURL=fetch.d.ts.map