import { JobRecipient } from './recipient.ts'; import type { JobStatus } from './index.ts'; import type { AbortOptions } from '@libp2p/interface'; import type { ProgressOptions } from 'progress-events'; export interface JobTimeline { created: number; started?: number; finished?: number; } export declare class Job { id: string; fn: (options: JobOptions) => Promise; options: JobOptions; recipients: Array>; status: JobStatus; readonly timeline: JobTimeline; private readonly controller; constructor(fn: (options: JobOptions) => Promise, options: any); abort(err: Error): void; onAbort(): void; join(options?: Partial>): Promise; run(): Promise; cleanup(): void; } //# sourceMappingURL=job.d.ts.map