import type { PiIntegrationTestArtifacts, PiIntegrationTestResult, PiIntegrationTestState, TraceEvent, TuiSize } from "../scenario/types.js"; /** A completed real-Pi run, whether it was just executed or opened from disk. */ export declare class PiRun implements PiIntegrationTestResult { private readonly data; private readonly bundleHeader; private readonly sessionData; private constructor(); /** * Wrap a just-completed result in the persistent run interface. * * @param result Structural result returned by the integration process. * @param session Optional native session JSONL captured by the runner. */ static fromResult(result: PiIntegrationTestResult, session?: string): PiRun; /** Open a saved run directory or its `run.jsonl` bundle without starting Pi. * * @param input Run directory or path to a `run.jsonl` file. * @throws If the bundle or its JSON records cannot be read. */ static open(input: string): Promise; /** Public artifact paths written for this run. */ get artifacts(): PiIntegrationTestArtifacts; /** Delay before each synchronized terminal frame, in milliseconds. */ get frameDelaysMs(): readonly number[]; /** Exit status of a standalone Pi process, or `null` for shared-runner cases. */ get exitCode(): number | null; /** Messages reconstructed from the final session branch. */ get messages(): readonly unknown[]; /** Provider requests captured during the run. */ get providerRequests(): readonly TraceEvent[]; /** Final Pi session and runtime state, when captured. */ get state(): PiIntegrationTestState | undefined; /** Exact PTY output, including ANSI and terminal control sequences. */ get terminalOutput(): string; /** Ordered events emitted by the harness. */ get traceEvents(): readonly TraceEvent[]; /** Final readable terminal screen after rendering the PTY stream. */ get tuiRenderedOutput(): string; /** PTY dimensions used for the run. */ get tuiSize(): TuiSize; /** The captured run header, when this run was opened from a bundle. */ get header(): unknown; /** The native Pi session JSONL, when the run persisted one. */ get session(): string | undefined; }