/**
 * 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<RetryEntry>;
    getAll(): Promise<RetryEntry[]>;
    getByIncrement(incrementId: string): Promise<RetryEntry[]>;
    getByProvider(provider: string): Promise<RetryEntry[]>;
    markFailed(id: string): Promise<void>;
    remove(id: string): Promise<void>;
    size(): Promise<number>;
    private prune;
    private enforceCapPending;
    private read;
    private write;
}
//# sourceMappingURL=sync-retry-queue.d.ts.map