export interface HttpRetryOptions { maxAttempts?: number; baseDelayMs?: number; maxDelayMs?: number; maxRetryAfterMs?: number; } /** * Retry wrapper that honours `Retry-After` on rate-limit errors. * * - `KsefRateLimitError` (HTTP 429): waits `retryAfter * 1000` ms, clamped * to `maxRetryAfterMs`. This is critical for `/invoices/query/metadata` * (8 req/s, 16 req/min) where fixed exponential backoff would burst * straight back into another 429. * - `KsefApiError` 5xx or undefined status (network error): exponential * backoff with jitter. * - Anything else (4xx except 429, unknown errors): thrown immediately. */ export declare function withHttpRetry(fn: () => Promise, opts?: HttpRetryOptions): Promise; //# sourceMappingURL=retry.d.ts.map