import type { JobKind } from "@/lib/db/schema"; /** A job the worker is executing (download, verify, delete). */ export interface Runner { readonly jobId: string; readonly modelId: string; readonly kind: JobKind; /** User cancel. */ cancel(): void; /** Worker shutdown; the job can be resumed later. */ interrupt(): void; run(): Promise; }