import type { JobAdmin } from '../services/ports/jobAdmin.js'; import type { JobRepository } from '../services/ports/jobRepository.js'; export interface FailUnstartedDeps { admin: Pick; jobs: Pick; workerId: string; } /** * J2 (ยง 8.6): the worker could not start (a module's bootstrap threw, the * database could not be reached). Nothing was processed, and a job left as it * is would be offered to a new worker every minute by the dispatch cron, which * would fail the same way. So the job is claimed, as any worker does, and ended * `failed` with the reason: the admin fixes the cause and uploads the file again. * * It does nothing to a job that is not waiting for a worker or that another * worker has claimed first. Returns whether the job was ended. */ export declare function failUnstarted(jobUuid: string, reason: unknown, deps: FailUnstartedDeps): Promise;