import { type SubTaskJobResult } from './queue/index.js'; interface JobProducerConfig { model?: string; provider?: string; tools?: string[]; } /** * Thin wrapper over BullMQ queue. * Replaces WorkerPool — instead of running workers in-memory, * it submits jobs to Redis and waits for distributed workers to process them. */ export declare class JobProducer { private model; private provider; private tools?; constructor(config?: JobProducerConfig); /** * Submit a subtask to the distributed queue and wait for completion. */ execute(data: { id: string; task_id: string; description?: string; prompt: string; model?: string; provider?: string; tools?: string[]; tenantId?: string; workspaceId?: string; projectId?: string; timeout?: number; }): Promise; /** * Submit multiple subtasks in bulk and wait for all. */ executeAll(items: Array<{ id: string; task_id: string; prompt: string; model?: string; provider?: string; tools?: string[]; tenantId?: string; workspaceId?: string; projectId?: string; timeout?: number; }>): Promise; stats(): Promise<{ waiting: number; active: number; completed: number; failed: number; }>; } export {}; //# sourceMappingURL=job-producer.d.ts.map