export interface SimpleTask {
    execute?: () => Promise<void>;
}
export declare class SimpleTasks<T extends SimpleTask> {
    private executor?;
    private tasks;
    constructor(executor?: ((task: T) => Promise<void>) | undefined);
    addTask(task: T): void;
    start(opt?: {
        busyInterval?: number;
        idleInterval?: number;
    }): void;
    private peekOne;
    private executeTask;
}
