import { Fn } from '../interfaces/index.js'; import { Task } from './task.js'; /** * Defining types */ export interface TaskManagerOptions { rollbackOnError: boolean; name: string; } export type ITask = Task | Fn; /** * Declaring the constants */ export declare class TaskManager { private static readonly logger; private readonly tasks; private readonly results; private readonly options; constructor(opts?: Partial); static create(opts?: Partial): TaskManager; private rollback; addTask(task: ITask): this; getResult(task: ITask): T; execute(): Promise>; }