import { IMidwayContext } from '@midwayjs/core/dist/interface';
import { Job } from 'bull';
/**
 * 动态异步方法
 * @param script
 * @return {*}
 * @constructor
 */
export declare const AsyncTaskDefinition: (script: string) => Function;
/**
 * 定时任务处理器
 * @param ctx 上下文
 * @param params 调用数据
 * @param job 任务对象
 * @param asyncTaskFunction 执行脚本
 */
export declare const AsyncTaskHandler: (ctx: IMidwayContext, params: Record<string, any> | undefined, job: Job, asyncTaskFunction: Function) => Promise<any>;
