import { ParseRateLimitDelayMs, RetryEvaluationInput } from './types.mjs'; declare const DEFAULT_TIMEOUT_MS = 10000; declare const DEFAULT_RETRIES = 2; declare const DEFAULT_RETRY_BASE_DELAY_MS = 200; declare const DEFAULT_RETRY_MAX_DELAY_MS = 2000; declare const DEFAULT_RETRY_BACKOFF_FACTOR = 2; declare const DEFAULT_RETRY_JITTER_RATIO = 0.2; declare const DEFAULT_RETRYABLE_METHODS: string[]; declare const DEFAULT_RETRY_STATUSES: number[]; declare const DEFAULT_CAP_RATE_LIMIT_DELAY_TO_MAX_DELAY_MS = false; declare const isRetryableNetworkError: (error: unknown) => boolean; declare const withBackoffAndJitter: (attempt: number, baseMs: number, maxMs: number, backoffFactor?: number, jitterRatio?: number) => number; declare const defaultParseRateLimitDelayMs: ParseRateLimitDelayMs; declare const defaultRetryOptions: { enabled: true; maxAttempts: number; baseDelayMs: number; maxDelayMs: number; backoffFactor: number; jitterRatio: number; retryableMethods: string[]; retryableStatusCodes: number[]; capRateLimitDelayToMaxDelayMs: false; parseRateLimitDelayMs: ParseRateLimitDelayMs; isRetryableError: (error: unknown) => boolean; }; declare const evaluateRetry: ({ response, error, attempt, maxAttempts, method, baseDelayMs, maxDelayMs, backoffFactor, jitterRatio, retryableMethods, retryableStatusCodes, capRateLimitDelayToMaxDelayMs, parseRateLimitDelayMs, onRetry, input, serviceName, request, isRetryableError, }: RetryEvaluationInput) => Promise<{ retry: boolean; delayMs: number; }>; export { DEFAULT_CAP_RATE_LIMIT_DELAY_TO_MAX_DELAY_MS, DEFAULT_RETRIES, DEFAULT_RETRYABLE_METHODS, DEFAULT_RETRY_BACKOFF_FACTOR, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_JITTER_RATIO, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_RETRY_STATUSES, DEFAULT_TIMEOUT_MS, defaultParseRateLimitDelayMs, defaultRetryOptions, evaluateRetry, isRetryableNetworkError, withBackoffAndJitter }; //# sourceMappingURL=retry.d.mts.map