import { type ReactNode } from "react"; export type Progress = (label: string) => void; type LiveProps = { /** Shown above the spinner while `run` is going. */ header: ReactNode; run: (progress: Progress) => Promise; done: (result: T) => ReactNode; failed: (error: unknown) => ReactNode; onExit?: (code: number) => void; /** Redraw the progress line. Off on a pipe, where every frame would be printed as a new line. */ animate?: boolean; }; /** Runs a job and draws its progress, then its result, then leaves. */ export declare function Live({ header, run, done, failed, onExit, animate }: LiveProps): import("react").JSX.Element; export {}; //# sourceMappingURL=Live.d.ts.map