export declare class Job {
    static name: string;
    worker: boolean;
    maxAttempts: number;
    run(..._args: any[]): Promise<any> | any;
    onFail(_error: Error, ..._args: any[]): void;
    onSuccess(_result: any, ..._args: any[]): void;
    onDeadletter(_error: Error, ..._args: any[]): void;
    static dispatch<T extends Job>(this: new () => T, ...args: Parameters<T["run"]>): void;
}
//# sourceMappingURL=Job.d.ts.map