import { IMidwayContext } from '@midwayjs/core/dist/interface';
/**
 * 动态异步方法
 * @param script
 * @return {*}
 * @constructor
 */
export declare const ScheduleTaskDefinition: (script: string) => Function;
/**
 * 定时任务处理器
 * @param ctx 上下文
 * @param scheduleTaskDefinition 执行脚本
 */
export declare const ScheduleTaskHandler: (ctx: IMidwayContext, scheduleTaskDefinition: Function) => Promise<any>;
