import { Subject } from 'rxjs'; import { ListrRendererFactory, ListrGetRendererTaskOptions, ListrContext, ListrEvent, ListrOptions, ListrTask, ListrTaskObject, ListrTaskWrapper, PromptError, ListrGetRendererOptions, StateConstants } from '../interfaces/listr.interface'; import { Listr } from '../index'; export declare class Task extends Subject implements ListrTaskObject { listr: Listr; tasks: ListrTask; options: ListrOptions; rendererOptions: ListrGetRendererOptions; id: ListrTaskObject['id']; cleanTitle: ListrTaskObject['cleanTitle']; task: ListrTaskObject['task']; skip: ListrTaskObject['skip']; subtasks: ListrTaskObject['subtasks']; state: ListrTaskObject['state']; output: ListrTaskObject['output']; title: ListrTaskObject['title']; message: ListrTaskObject['message']; prompt: boolean | PromptError; exitOnError: boolean; rendererTaskOptions: ListrGetRendererTaskOptions; renderHook$: Subject; private enabled; private enabledFn; constructor(listr: Listr, tasks: ListrTask, options: ListrOptions, rendererOptions: ListrGetRendererOptions); set state$(state: StateConstants); set output$(data: string); set message$(data: ListrTaskObject['message']); set title$(title: string); check(ctx: Ctx): Promise; hasSubtasks(): boolean; isPending(): boolean; isSkipped(): boolean; isCompleted(): boolean; hasFailed(): boolean; isEnabled(): boolean; hasTitle(): boolean; isPrompt(): boolean; run(context: Ctx, wrapper: ListrTaskWrapper): Promise; }