/** * A wrapper around fetch that retries the request on certain error codes. * * By default: * * Requests will be retried if max retries not exceeded and : * - The status code is >= 400 AND NOT in the NO_RETRY_ERROR_CODES list, * - OR the request promise rejected (network error) * * The retry delay is exponential, 1s, 2s, 4s, 8s, ... maxing at 30s. * * Maximum retries is 3. * * NOTE: * - When NODE_ENV="test", the maximum retries is set 0 by default but can be * set via the TEST_ENV_MAX_RETRIES environment variable. */ declare const retryingFetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise) & typeof globalThis.fetch; export default retryingFetch;