import { type Candidate, type CandidatePresentation } from "./candidates.js"; import { type PromptBudgetFailure } from "./prompt.js"; export type ProcessResult = { readonly code: number; readonly stdout: string; readonly stderr: string; readonly timedOut: boolean; }; export type RgCandidatesResult = { readonly code: number; readonly stderr: string; readonly candidates: readonly Candidate[]; readonly promptBudgetExceeded: PromptBudgetFailure | null; }; export type RgCandidateBudget = { readonly condition: string; readonly perRequestMaxBytes: number; readonly totalMaxBytes: number; }; export declare function runCaptured(command: string, args: readonly string[], options?: { readonly input?: string; readonly timeoutMs?: number; readonly inheritStdin?: boolean; readonly signal?: AbortSignal; }): Promise; export declare function runRgCandidates(command: string, args: readonly string[], budget: RgCandidateBudget, presentation: CandidatePresentation): Promise; export declare function execInherited(command: string, args: readonly string[]): Promise; export declare function isSpawnError(error: unknown): boolean; export declare function formatSpawnError(tool: string, error: unknown): string; //# sourceMappingURL=process.d.ts.map