import { Listr } from './listr'; import { ListrError } from './interfaces/listr-error.interface'; import { ListrBaseClassOptions, ListrContext, ListrSubClassOptions, ListrTask } from './interfaces/listr.interface'; import { ListrGetRendererClassFromValue, ListrRendererValue } from './interfaces/renderer.interface'; /** * Creates a new Listr2 task manager. * * Useful for creating a single instace of Listr2 with pre-set settings. */ export declare class Manager { options?: ListrBaseClassOptions; err: ListrError[]; private tasks; constructor(options?: ListrBaseClassOptions); set ctx(ctx: Ctx); add(tasks: ListrTask>[] | ((ctx?: InjectCtx) => ListrTask>[]), options?: ListrSubClassOptions): void; runAll(options?: ListrBaseClassOptions): Promise; newListr(tasks: ListrTask>[], options?: ListrBaseClassOptions): Listr; indent(tasks: ListrTask>[] | ((ctx?: InjectCtx) => ListrTask>[]), options?: ListrBaseClassOptions, taskOptions?: Omit>, 'task'>): ListrTask>; run(tasks: ListrTask>[], options?: ListrBaseClassOptions): Promise; getRuntime(pipetime: number): string; }