import { S as RetryPolicy, _ as TimeoutPolicyAttachment, b as Delay, d as OpPolicy, f as OpPolicyInput, g as RetryPolicyAttachment, h as ReleasePolicyAttachment, i as ReleaseFn, l as BuiltInPolicy, m as OpPolicyType, p as OpPolicySource, u as CancelPolicyAttachment, v as TimeoutPolicyType, x as ExponentialDelayOptions, y as define } from "../index-BeplSvsa.mjs"; import { t as HKT } from "../hkt-C84w3kEn.mjs"; //#region src/policy/index.d.ts declare function retry(policy?: RetryPolicy): RetryPolicyAttachment; declare function timeout(timeoutMs: number): TimeoutPolicyAttachment; declare function cancel(abortSignal: AbortSignal): CancelPolicyAttachment; declare function release(releaseFn: ReleaseFn): ReleasePolicyAttachment; /** Built-in and custom policy constructors for `.with(...)`. */ declare const Policy: { /** Creates a retry policy attachment for `.with(Policy.retry(...))`. Uses default `retries: 2` when omitted. */readonly retry: typeof retry; /** Creates a timeout policy attachment for `.with(Policy.timeout(...))`. */ readonly timeout: typeof timeout; /** Creates a cancellation policy attachment for `.with(Policy.cancel(...))`. */ readonly cancel: typeof cancel; /** Creates a release policy attachment for `.with(Policy.release(...))`. */ readonly release: typeof release; /** Builds a custom policy value for `.with(Policy.define(...))`. */ readonly define: typeof define; }; /** Policy attachment for `.with(...)`. Custom factories return `Policy`. */ type Policy = OpPolicy; /** Nested type helpers for custom `Policy.define(...)` authors. */ declare namespace Policy { /** Contravariant input phantom; enables contextual typing for `Policy.release((value) => ...)`. */ type Input = OpPolicyInput; /** Plan surface passed to `apply(source)` inside `Policy.define(...)`. */ type Source = OpPolicySource; /** Identity policy HKT; built-in policies extend this or `TimeoutPolicyType`. */ type Type = OpPolicyType; /** Union of built-in policy attachment types. */ type BuiltIn = BuiltInPolicy; } //#endregion export { type CancelPolicyAttachment, Delay, type ExponentialDelayOptions, Policy, type ReleasePolicyAttachment, type RetryPolicy, type RetryPolicyAttachment, type TimeoutPolicyAttachment, type TimeoutPolicyType }; //# sourceMappingURL=index.d.mts.map