import { z } from "zod/v4"; import { EventFilter } from "./eventFilter.js"; import type { Prettify } from "../types/index.js"; export declare const FetchRetryHeadersStrategy: z.ZodObject<{ strategy: z.ZodLiteral<"headers">; limitHeader: z.ZodString; remainingHeader: z.ZodString; resetHeader: z.ZodString; bodyFilter: z.ZodOptional>>; resetFormat: z.ZodOptional>>; }, z.core.$strip>; export type FetchRetryHeadersStrategy = z.infer; export declare const FetchRetryBackoffStrategy: z.ZodObject<{ maxAttempts: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; strategy: z.ZodLiteral<"backoff">; bodyFilter: z.ZodOptional>>; }, z.core.$strip>; /** The `backoff` strategy retries the request with an exponential backoff. */ export type FetchRetryBackoffStrategy = z.infer; export declare const FetchRetryStrategy: import("../utils/zod.js").CompatibleZodDiscriminatedUnion; limitHeader: z.ZodString; remainingHeader: z.ZodString; resetHeader: z.ZodString; bodyFilter: z.ZodOptional>>; resetFormat: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ maxAttempts: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; strategy: z.ZodLiteral<"backoff">; bodyFilter: z.ZodOptional>>; }, z.core.$strip>]>; export type FetchRetryStrategy = z.infer; export declare const FetchRetryByStatusOptions: z.ZodRecord; limitHeader: z.ZodString; remainingHeader: z.ZodString; resetHeader: z.ZodString; bodyFilter: z.ZodOptional>>; resetFormat: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ maxAttempts: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; strategy: z.ZodLiteral<"backoff">; bodyFilter: z.ZodOptional>>; }, z.core.$strip>]>>; /** An object where the key is a status code pattern and the value is a retrying strategy. Supported patterns are: - Specific status codes: 429 - Ranges: 500-599 - Wildcards: 2xx, 3xx, 4xx, 5xx */ export type FetchRetryByStatusOptions = Prettify>; export declare const FetchTimeoutOptions: z.ZodObject<{ durationInMs: z.ZodOptional; retry: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type FetchTimeoutOptions = z.infer; export declare const FetchRetryOptions: z.ZodObject<{ byStatus: z.ZodOptional; limitHeader: z.ZodString; remainingHeader: z.ZodString; resetHeader: z.ZodString; bodyFilter: z.ZodOptional>>; resetFormat: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ maxAttempts: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; strategy: z.ZodLiteral<"backoff">; bodyFilter: z.ZodOptional>>; }, z.core.$strip>]>>>; timeout: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; connectionError: z.ZodOptional; factor: z.ZodOptional; minTimeoutInMs: z.ZodOptional; maxTimeoutInMs: z.ZodOptional; randomize: z.ZodOptional; outOfMemory: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type FetchRetryOptions = Prettify>;