export declare function worker(name: string, handler: (payload?: Record, id?: string) => Promise, opts?: { interval?: number; concurrency?: number; direction?: "front" | "back"; }): Promise;