/**
 * Auto-Enhancement Processor
 *
 * Background processor that handles the auto_enhancement_queue table.
 * Processes queued fields for auto-enhancement in batches to avoid blocking storage operations.
 */
export interface QueueItem {
    id: string;
    entity_type: string;
    fragment_key: string;
    user_id: string | null;
    frequency_count: number | null;
    retry_count: number;
    job_type?: string | null;
}
/**
 * Process auto-enhancement queue (runs every 30 seconds)
 */
export declare function processAutoEnhancementQueue(): Promise<{
    processed: number;
    succeeded: number;
    failed: number;
    skipped: number;
}>;
/**
 * Start the auto-enhancement processor (runs continuously)
 */
export declare function startAutoEnhancementProcessor(intervalMs?: number): () => void;
/**
 * Clean up old completed/skipped queue items (run periodically)
 */
export declare function cleanupOldQueueItems(daysToKeep?: number): Promise<number>;
//# sourceMappingURL=auto_enhancement_processor.d.ts.map