/** * Build enhanced run summary from loop state and external data sources. */ import type { RunSummary } from '../screens/RunScreen.js'; /** * Build enhanced run summary from loop completion state. * * This function aggregates data from: * - Basic loop state (iterations, tasks, tokens, exit code) * - Phase timing file (/tmp/ralph-loop-.phases) * - Baseline commit file (/tmp/ralph-loop-.baseline) * - Git diff stats (via git-summary utilities) * - PR/issue metadata (via pr-summary utilities) * * @param basicSummary - The minimal RunSummary constructed by RunScreen * @param projectRoot - Root directory of the project * @param feature - Feature name * @returns Enhanced RunSummary with all available metadata * * Note: This function performs synchronous I/O and subprocess execution, * which blocks the event loop. Callers should wrap in try-catch to handle * failures gracefully. */ export declare function buildEnhancedRunSummary(basicSummary: RunSummary, projectRoot: string, feature: string, baselineOverride?: string | null): RunSummary;