/**
 * Result aggregation utilities for headless executor
 */
import type { ExecutionResult, StreamMessage, ToolUsageSummary } from './types';
export declare function summarizeToolUsage(messages: StreamMessage[]): ToolUsageSummary;
/**
 * Build execution result from stream messages
 * @param params - Parameters for building result
 * @returns ExecutionResult with all fields populated
 */
export declare function buildExecutionResult(params: {
    exitCode: number;
    stdout: string;
    stderr: string;
    cwd: string;
    profile: string;
    duration: number;
    timedOut: boolean;
    messages: StreamMessage[];
}): ExecutionResult;
/**
 * Extract session info from result for session management
 * @param result - Execution result
 * @returns Session info or null
 */
export declare function extractSessionInfo(result: ExecutionResult): {
    sessionId: string;
    totalCost?: number;
    cwd: string;
} | null;
//# sourceMappingURL=result-aggregator.d.ts.map