import NTTrawler from './Trawler'; import { TrawlerOptions, Progress } from '../types'; export default class NTQueue extends NTTrawler { protected $q: any; protected queue: any; protected worker: any; /** * @deprecated Use EventEmitter's event system instead */ protected cb: Record void>; protected since: Record; protected repeatTimeout: NodeJS.Timeout | null; constructor(relays: string[], options: TrawlerOptions); /** * @deprecated Use emit() instead. This will be removed in a future version. */ _on(key: string, ...args: any[]): Promise; /** * @deprecated Use the standard EventEmitter on() method directly. This will be removed in a future version. */ legacyOn(key: string, callback: (...args: any[]) => void): this; /** * @deprecated Use the standard EventEmitter on() method with prefixed events. This will be removed in a future version. */ on_queue(key: string, data: any): this; /** * @deprecated Use the standard EventEmitter on() method with prefixed events. This will be removed in a future version. */ on_worker(key: string, data: any): this; handle_queue_drained($job: any, result: any): Promise; addFirstJob(fn: Function, target: any): void; pause(key?: string): void; clear(key?: string): void; start(key?: string): void; stop(key?: string): void; updateProgress(progress: Progress, $job: any): Promise; }