import type { JobStatus } from './types.js'; /** * What a worker may do to a job's status (§ 8.4, transitions). One table for the * real repository and the test double, so that they cannot disagree. */ /** The claims: `from` → `to`, each raising the `attempt`. */ export declare const CLAIMS: ReadonlyArray; /** What a worker may leave `validating` and `running` for. */ export declare const FINISH_FROM: Readonly>; /** The statuses that end a job: it gets a `finished_at`. */ export declare const FINAL: ReadonlySet; /** The statuses in which a worker owns the job: only these accept its writes. */ export declare const WORKER_STATUSES: readonly ["validating", "running"]; /** The default time a finished job is kept (§ 8.4, Cleanup). */ export declare const RETENTION_MS: number; /** A worker that has not reported for this long is dead (§ 8.4, Heartbeat and recovery). */ export declare const DEAD_AFTER_MS = 120000; /** An upload with no chunk for this long is abandoned (§ 8.4, Cleanup). */ export declare const UPLOAD_IDLE_MS = 600000; /** A job waits this long for its worker before the dispatch cron asks again (§ 8.4). */ export declare const DISPATCH_AFTER_MS = 30000;