import { Job, RawJob } from './models/Job'; export declare const CANCEL = "rn_job_queue_cancel"; export interface WorkerOptions

{ onStart?: (job: Job

) => void; onSuccess?: (job: Job

) => void; onFailure?: (job: Job

, error: Error) => void; onCompletion?: (job: Job

) => void; concurrency?: number; } export interface CancellablePromise extends Promise { rn_job_queue_cancel?: () => void; } export declare class Worker

{ readonly name: string; readonly concurrency: number; private executionCount; private executer; private onStart; private onSuccess; private onFailure; private onCompletion; constructor(name: string, executer: (payload: P, id: string) => Promise, options?: WorkerOptions

); get isBusy(): boolean; get availableExecuters(): number; execute(rawJob: RawJob): CancellablePromise; private executeWithTimeout; triggerSuccess(job: Job

): void; triggerFailure(job: Job

, error: Error): void; triggerCompletion(job: Job

): void; decreaseExecutionCount(): void; } //# sourceMappingURL=Worker.d.ts.map