import type { AbortOptions } from '@libp2p/interface';
import type { DeferredPromise } from 'p-defer';
import type { ProgressOptions, ProgressEventListener } from 'progress-events';
export declare class JobRecipient<JobReturnType, JobOptions extends AbortOptions & ProgressOptions = any> {
    deferred: DeferredPromise<JobReturnType>;
    signal?: AbortSignal;
    onProgress?: ProgressEventListener;
    constructor(options?: Partial<Pick<JobOptions, 'signal' | 'onProgress'>>);
    onAbort(): void;
    cleanup(): void;
}
//# sourceMappingURL=recipient.d.ts.map