/**
 * Stripe retry configuration.
 */
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as ServiceMap from "effect/ServiceMap";
export { makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
/**
 * Context tag for configuring retry behavior of Stripe API calls.
 */
export class Retry extends ServiceMap.Service()("StripeRetry") {
}
/**
 * Provides a custom retry policy to all Stripe API calls.
 */
export const policy = (optionsOrFactory) => Effect.provide(Layer.succeed(Retry, optionsOrFactory));
/**
 * Disables all automatic retries.
 */
export const none = Effect.provide(Layer.succeed(Retry, { while: () => false }));
//# sourceMappingURL=retry.js.map