/** * Retry with exponential backoff for opensip-tools. * Designed for network calls (e.g., --report-to SARIF POST). */ export interface RetryOptions { /** Maximum number of attempts (including the first). Default: 3 */ maxAttempts?: number; /** Initial delay in ms before first retry. Default: 500 */ initialDelayMs?: number; /** Maximum delay in ms. Default: 10000 */ maxDelayMs?: number; /** Multiplier for exponential backoff. Default: 2 */ backoffMultiplier?: number; /** Called before each retry with attempt number, error, and delay. */ onRetry?: (attempt: number, error: Error, delayMs: number) => void; } /** * Execute an async function with exponential backoff retry. * Throws the last error if all attempts fail. * * @throws {Error} The last error thrown by `fn` after exhausting * `effectiveMaxAttempts` attempts. Non-Error throws are wrapped in * an `Error` whose message is `String(value)`. */ export declare function withRetry(fn: () => Promise, options?: RetryOptions): Promise; //# sourceMappingURL=retry.d.ts.map