import { CronTime } from './time'; import { CronCallback, CronContext, CronJobParams, CronOnCompleteCallback, CronOnCompleteCommand, WithOnComplete } from './types/cron.types'; export declare class CronJob { cronTime: CronTime; running: boolean; unrefTimeout: boolean; lastExecution: Date | null; runOnce: boolean; context: CronContext; onComplete?: WithOnComplete extends true ? CronOnCompleteCallback : undefined; waitForCompletion: boolean; private _isCallbackRunning; private _timeout?; private _callbacks; get isCallbackRunning(): boolean; constructor(cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams['unrefTimeout'], waitForCompletion?: CronJobParams['waitForCompletion']); constructor(cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: null, context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout'], waitForCompletion?: CronJobParams['waitForCompletion']); static from(params: CronJobParams): CronJob; private _fnWrap; addCallback(callback: CronCallback>): void; setTime(time: CronTime): void; nextDate(): import("luxon").DateTime; fireOnTick(): Promise; nextDates(i?: number): import("luxon").DateTime[]; start(): void; lastDate(): Date | null; private _executeOnComplete; private _waitForJobCompletion; stop(): void; }