import { ListrError } from './interfaces/listr-error.interface'; import { ListrBaseClassOptions, ListrContext, ListrTask } from './interfaces/listr.interface'; import { ListrDefaultRendererValue, ListrFallbackRendererValue, ListrGetRendererClassFromValue, ListrGetRendererOptions, ListrRendererFactory, ListrRendererValue } from './interfaces/renderer.interface'; import { Task } from './lib/task'; /** * Creates a new set of Listr2 task list. */ export declare class Listr { task: ListrTask> | ListrTask>[]; options?: ListrBaseClassOptions; tasks: Task>[]; err: ListrError[]; ctx: Ctx; rendererClass: ListrRendererFactory; rendererClassOptions: ListrGetRendererOptions; renderHook$: Task['renderHook$']; private concurrency; private renderer; constructor(task: ListrTask> | ListrTask>[], options?: ListrBaseClassOptions); add(task: ListrTask> | ListrTask>[]): void; run(context?: Ctx): Promise; private checkAll; private runTask; }