/**
 * Cloud Sync Retry Queue
 *
 * Replaces fire-and-forget cloud sync with a queue that retries failed syncs.
 * Uses SQLite sync_queue table with exponential backoff.
 */
export interface SyncEntry {
    source_type: string;
    source_identifier: string;
    trust_score: number;
    sensitivity_level: string;
    firewall_result: string;
    anomaly_score: number;
    threat_indicators: string[];
    reason: string | null;
    pipeline_duration_ms: number;
    device_id: string;
    device_name: string;
    platform: string;
    timestamp: string;
}
export interface QueueStats {
    pending: number;
    failed: number;
    synced: number;
}
export interface SyncQueueResult {
    processed: number;
    succeeded: number;
    failed: number;
    permanentlyFailed: number;
}
/**
 * Enqueue a failed sync entry for later retry.
 * INSERT into sync_queue with exponential backoff schedule.
 */
export declare function enqueueFailedSync(entry: SyncEntry): void;
/**
 * Process pending items in the retry queue.
 * SELECT pending WHERE next_retry_at <= now, retry each (up to 10 per tick).
 * Awaits each fetch so results are accurate and no double-processing occurs.
 */
export declare function processRetryQueue(): Promise<SyncQueueResult>;
/**
 * Get queue statistics by status.
 */
export declare function getQueueStats(): QueueStats;
/**
 * Purge old entries from the queue.
 * DELETE WHERE created_at < 7 days ago.
 * Returns the number of rows deleted.
 */
export declare function purgeOldEntries(): number;
//# sourceMappingURL=sync-queue.d.ts.map