/** * Cloudflare retry configuration. * * Defines the per-SDK `Retry` Context.Service tag that * `packages/cloudflare/src/client.ts` wires into `makeAPI`. Callers can * install a blanket retry policy at the layer level and have every * Cloudflare API call below it pick it up: * * @example * ```ts * import * as Cloudflare from "@distilled.cloud/cloudflare"; * * myEffect.pipe(Cloudflare.Retry.transient); * Effect.provide(myEffect, Layer.succeed(Cloudflare.Retry.Retry, customPolicy)); * ``` */ import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import { type Policy } from "@distilled.cloud/core/retry"; export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, throttlingFactory, transientFactory, } from "@distilled.cloud/core/retry"; declare const Retry_base: Context.ServiceClass; /** Context tag for configuring retry behavior of Cloudflare API calls. */ export declare class Retry extends Retry_base { } /** Provides a custom retry policy to every Cloudflare API call below it. */ export declare const policy: (optionsOrFactory: Policy) => (self: Effect.Effect) => Effect.Effect>; /** Disables all automatic retries. */ export declare const none: (self: Effect.Effect) => Effect.Effect>; /** Apply the throttling retry policy (retries throttling errors indefinitely). */ export declare const throttling: (self: Effect.Effect) => Effect.Effect>; /** Apply the transient retry policy (retries all transient errors indefinitely). */ export declare const transient: (self: Effect.Effect) => Effect.Effect>; //# sourceMappingURL=retry.d.ts.map