import { RunConfig } from '../types/artifact.js'; import { FailureRecord } from '../types/failure.js'; export interface CaptureResult { failure: FailureRecord; stdout: string; stderr: string; /** Temp file paths (cleaned up after result is consumed) */ _stdoutPath?: string; _stderrPath?: string; } /** * Spawns the command, streams output to temp files, and produces a FailureRecord. * * Streaming approach: * - stdout/stderr are written to temp files (no memory cap) * - SHA-256 hash is computed incrementally as data flows * - Only the last 20 lines of stderr are kept in memory for snippet display * - Memory usage stays constant regardless of output size */ export declare function executeAndCapture(config: RunConfig): Promise; //# sourceMappingURL=engine.d.ts.map