import type { ReactElement, ReactNode } from "react"; import { type Progress } from "./components/Live.js"; /** * Draws a finished view once and leaves. Ink prints the final frame on a pipe * too, so `oh-my-plumb report | less` still reads well. Nothing in the hooks goes * through here: their stdout belongs to the host. */ export declare const showStatic: (element: ReactElement) => Promise; type LiveJob = { header: ReactNode; run: (progress: Progress) => Promise; done: (result: T) => ReactNode; /** Exit code once the result is drawn. */ code?: (result: T) => number; }; /** Runs a job under a spinner, draws its result, and resolves to the exit code. */ export declare const showLive: (job: LiveJob) => Promise; export declare const showError: (error: unknown) => Promise; export {}; //# sourceMappingURL=render.d.ts.map