import { type Result } from '../deps/jsr.io/@wentools/result/0.1.3/src/mod.js'; import type { RetryOptions, RetryError, ExecutionMetadata } from './types.js'; /** * Retry a function that returns a Result until it succeeds or max attempts reached */ declare const withRetry: (fn: () => Promise>, options?: Partial) => Promise>>; /** * Retry a function that returns a Promise (not Result) until it succeeds */ declare const retryPromise: (fn: () => Promise, options?: Partial) => Promise>>; /** * Create a retryable version of a function */ declare const makeRetryable: (fn: (...args: TArgs) => Promise>, defaultOptions?: Partial) => ((...args: TArgs) => (options?: Partial) => Promise>>); /** * Execute a Result-returning function with retry logic and full execution tracking * * Like withRetry, but returns detailed metadata about all attempts including * timing, results, and delays. Useful for observability, monitoring, and audit trails. */ declare const withRetryMetadata: (fn: () => Promise>, options?: Partial) => Promise>; export { withRetry, retryPromise, makeRetryable, withRetryMetadata }; //# sourceMappingURL=retry.d.ts.map