import { BaseDatabase } from '../../database';
import type { QueuedWorkerJob, WorkerJobRecord } from './types';
export declare class WorkerRecorderService {
    private readonly db?;
    private readonly records;
    constructor(db?: BaseDatabase | undefined);
    getRecords(): WorkerJobRecord[];
    recordCompleted(job: QueuedWorkerJob, result: unknown, options?: {
        recordToDatabase?: boolean;
    }): Promise<WorkerJobRecord>;
    recordFailed(job: QueuedWorkerJob, result: unknown, options?: {
        recordToDatabase?: boolean;
    }): Promise<WorkerJobRecord>;
    private record;
    private insertRecord;
}
//# sourceMappingURL=recorder.d.ts.map