/** * Summary File Writer * Persists enhanced run summaries to JSON files for later retrieval */ import type { RunSummary } from '../tui/screens/RunScreen.js'; /** * Write enhanced run summary to a JSON file in the temp directory * * @param featureName - The feature name used to construct the file path * @param summary - The complete RunSummary object to persist * @returns Promise that resolves when the file is written, or rejects on error * * Uses RALPH_SUMMARY_TMP_DIR environment variable if set, otherwise os.tmpdir(). * * @example * ```ts * await writeRunSummaryFile('my-feature', { * feature: 'my-feature', * exitCode: 0, * // ... other RunSummary fields * }); * // Writes to: /ralph-loop-my-feature.summary.json * ``` */ export declare function writeRunSummaryFile(featureName: string, summary: RunSummary): Promise;