import * as bull from '@midwayjs/bull';
import { ILogger } from '@midwayjs/core';
import { Resource } from '../entity';
import { MagicResourceService } from './core';
import { MagicDefinition } from './magic.provide';
export declare class MagicScheduleTask implements MagicDefinition {
    type: string;
    bullFramework: bull.Framework;
    magicResourceService: MagicResourceService;
    logger: ILogger;
    bullConfig: any;
    private idInMappingPath;
    init(reInit?: boolean): Promise<void>;
    /**
     * 添加定时任务
     * @param resource
     */
    add(resource: Resource): Promise<void>;
    /**
     * 删除定时任务
     * @param id
     */
    removeById(id: string): Promise<void>;
}
