export type JobStatus = 'queued' | 'claimed' | 'running' | 'done' | 'cancelled' | 'failed'; export interface AgenticJob { id: string; project_id: string; prompt: string; status: JobStatus; claimed_by?: string; claimed_at?: string; completed_at?: string; result?: { output?: string; files_changed?: string[]; }; created_at: string; created_by?: string; [key: string]: unknown; } export interface EnqueueJobInput { projectId: string; prompt: string; createdBy?: string; } export interface EnqueueJobOutput { jobId: string; queuePosition: number; filePath: string; } export interface CancelJobInput { projectId: string; jobId: string; } /** * List all jobs for a project. Returns oldest-first (creation order). Reads * from both .decibel/ and decibel/ paths, deduplicating by id. */ export declare function listJobs(projectId: string): Promise; /** * Enqueue a new dispatch job. Allocates the next JOB-NNNN id, writes the * YAML file, and returns the id + queue position (number of active jobs * ahead of this one, inclusive). */ export declare function enqueueJob(input: EnqueueJobInput): Promise; /** * Cancel a queued / claimed job. No-op if the job is already terminal * (done / cancelled / failed). Marks status: cancelled and stamps * completed_at. */ export declare function cancelJob(input: CancelJobInput): Promise; //# sourceMappingURL=agenticJobs.d.ts.map