export declare class AsyncTask {
    isExecuting: boolean;
    private readonly id;
    private readonly handler;
    private readonly errorHandler;
    constructor(id: string, handler: () => Promise<unknown>, errorHandler?: (err: Error) => void);
    execute(): void;
}
