export declare const STATUSES: readonly ["queued", "running", "succeeded", "failed", "canceled"]; export type TaskStatus = (typeof STATUSES)[number]; export interface Task { id: string; name: string; queue: string; status: TaskStatus; payload: any; metadata: any; result: any | null; error: any | null; progress: number | null; message: string | null; attempt: number; max_attempts: number; priority: number; worker_id: string | null; lease_until_ms: number | null; run_at_ms: number; cancel_requested_at_ms: number | null; parent_id: string | null; root_id: string | null; correlation_id: string | null; created_at_ms: number; updated_at_ms: number; completed_at_ms: number | null; } export declare const TERMINAL: TaskStatus[]; export declare function rowToTask(row: Record): Task; export declare function isTerminal(task: Task): boolean; export declare function cancelRequested(task: Task): boolean; export declare const isQueued: (task: Task) => boolean; export declare const isRunning: (task: Task) => boolean; export declare const isSucceeded: (task: Task) => boolean; export declare const isFailed: (task: Task) => boolean; export declare const isCanceled: (task: Task) => boolean;