import { spawn } from "node:child_process"; import type { StructuredExecHost } from "./structured-exec-host.js"; import type { StructuredRunnerAdapter, StructuredRunnerContext, StructuredRunnerExecution, StructuredRunnerObserver, StructuredRunnerTurnState } from "./structured-runner.js"; import type { SessionSnapshot } from "./types.js"; export declare function buildPiArgs(session: SessionSnapshot, prompt: string): string[]; export declare function piToolName(name: string): string; export declare function applyPiEvent(state: StructuredRunnerTurnState, event: Record): string | null; export declare class PiRunner implements StructuredRunnerAdapter { private readonly spawnProcess; private readonly execHost?; constructor(spawnProcess?: typeof spawn, execHost?: StructuredExecHost | undefined); start(context: StructuredRunnerContext, observer: StructuredRunnerObserver): StructuredRunnerExecution; }