import type { PiRunResult } from "./types"; /** Parse JSONL output produced by `pi --mode json`. Pure function — no side effects. */ export declare function parseJsonlOutput(stdout: string, stderr: string, exitCode: number | null | undefined): PiRunResult; /** Shell-escape a value using single-quotes (safe for env VAR='value' assignments). */ export declare function escapeShellArg(value: string): string; /** Race a promise against an AbortSignal, rejecting with AbortError if cancelled. */ export declare function raceWithAbort(promise: Promise, signal: AbortSignal): Promise; //# sourceMappingURL=helpers.d.ts.map