import { type TimestampFields } from '@unchainedshop/mongodb'; import { type mongodb } from '@unchainedshop/mongodb'; export declare const WorkStatus: { readonly NEW: "NEW"; readonly ALLOCATED: "ALLOCATED"; readonly SUCCESS: "SUCCESS"; readonly FAILED: "FAILED"; readonly DELETED: "DELETED"; }; export type WorkStatus = (typeof WorkStatus)[keyof typeof WorkStatus]; export type Work = { _id: string; priority: number; retries: number; scheduled: Date; type: string; input: Record; error?: any; finished?: Date; originalWorkId?: string; result?: any; started?: Date; success?: boolean; timeout?: number; worker?: string | null; autoscheduled?: boolean; scheduleId?: string; } & TimestampFields; export declare const WorkQueueCollection: (db: mongodb.Db) => Promise>;