import { ReactElement } from "react"; import { ProcessRenderer, RunnableHandler } from "./process.js"; import { Writable } from "stream"; export declare class SimpleProcessRenderer implements ProcessRenderer { private readonly title; private readonly output; private started; private cleanupFns; private stepCounter; constructor(title: string, output: Writable); start(): void; addStep(title: string): RunnableHandler; runStep(title: string, fn: (() => Promise) | Promise): Promise; addInfo(title: string): void; addConfirmation(question: string): Promise; addInput(question: string, mask?: boolean): Promise; addSelect(question: string, options: { value: TVal; label: string; }[]): Promise; addCleanup(title: string, fn: () => Promise): void; complete(summary: ReactElement): Promise; error(err: unknown): Promise; private cleanup; private renderElementToText; }