import type { AnalyticsHandlerInterface } from '@internetarchive/analytics-manager'; import { type FetchOptions } from '../fetch-options'; import type { RetryConfiguring } from './configuration/retry-configuring'; /** * A class that retries a fetch request. */ export interface FetchRetrierInterface { /** * Execute a fetch with retry. * * @param request RequestInfo * @param options Optional RequestInit | FetchOptions * @returns Promise */ fetchRetry(request: RequestInfo, options?: RequestInit | FetchOptions): Promise; } /** @inheritdoc */ export declare class FetchRetrier implements FetchRetrierInterface { private analyticsHandler?; private retryConfig; constructor(options?: { analyticsHandler?: AnalyticsHandlerInterface; retryConfig?: RetryConfiguring; }); /** @inheritdoc */ fetchRetry(request: RequestInfo, options?: RequestInit | FetchOptions): Promise; private doFetchRetry; private isContentBlockerError; private readonly eventCategory; private logRetryEvent; private logFailureEvent; private log4xx5xxResponse; private logContentBlockingEvent; }