/** * Sync Retry Queue * * File-based retry queue for failed external sync operations. * Persists to .specweave/state/sync-retry-queue.json with atomic writes. * * Features: * - Exponential backoff: 1m, 5m, 30m * - 100-entry cap with FIFO eviction * - 7-day auto-prune on every write * - Atomic write via temp file + rename * * @module core/sync/sync-retry-queue */ export interface RetryEntry { id: string; incrementId: string; provider: string; featureId: string; projectPath: string; projectName: string; error: string; attemptCount: number; maxAttempts: number; status: 'pending' | 'failed'; createdAt: string; nextRetryAt: string; lastAttemptAt: string; } export interface EnqueueParams { incrementId: string; provider: string; featureId: string; projectPath: string; projectName: string; error: string; attemptCount?: number; } export declare class SyncRetryQueue { private readonly filePath; private readonly statePath; constructor(options: { statePath: string; }); enqueue(params: EnqueueParams): Promise; getAll(): Promise; getByIncrement(incrementId: string): Promise; getByProvider(provider: string): Promise; markFailed(id: string): Promise; remove(id: string): Promise; size(): Promise; private prune; private enforceCapPending; private read; private write; } //# sourceMappingURL=sync-retry-queue.d.ts.map