/** * @fileoverview Retry logic for fitness check execution. * * Release 2.13.0: the retry implementation was hoisted into the shared execution * substrate (`runWithRetry`, `@opensip-cli/core`). This module is now a thin * fitness-flavoured wrapper that pins the abort-aware predicate (a * `CheckAbortedError` is never retried) and preserves the historical return shape, * so call sites and tests are unchanged. */ /** Configuration for retry behavior */ export interface RetryOptions { readonly enabled: boolean; readonly maxRetries: number; readonly checkId: string; readonly checkSlug: string; } /** Result of a retry-wrapped function execution */ export interface RetryResult { readonly result: T | undefined; readonly lastError: unknown; readonly retryCount: number; readonly wasRetried: boolean; } /** * Execute a function with retry logic via the shared substrate. * Only retries when the function throws. CheckAbortedError is never retried. */ export declare function executeWithRetry(fn: () => Promise, options: RetryOptions): Promise>; //# sourceMappingURL=retry.d.ts.map