import type { RuntimeAgentProcess, RuntimeTaskAssignment, RuntimeTaskResultEntry, RuntimeConflictRecord, RuntimeConflictStrategy, RuntimeOrchestrationResult, RuntimeOrchestrationCost } from '../../types/index.js';
/**
 * Collect results from all agents into task result entries.
 */
export declare function collectTaskResults(agents: RuntimeAgentProcess[], assignments: RuntimeTaskAssignment[]): RuntimeTaskResultEntry[];
/**
 * Parse structured output from an agent's stdout.
 * Tries to extract JSON, falls back to raw text.
 */
export declare function parseAgentOutput(stdout: string): unknown;
/**
 * Detect file conflicts between agents and resolve them.
 */
export declare function detectAndResolveConflicts(assignments: RuntimeTaskAssignment[], agents: RuntimeAgentProcess[], strategy: RuntimeConflictStrategy): RuntimeConflictRecord[];
/**
 * Calculate total cost for the orchestration run.
 */
export declare function calculateCost(agents: RuntimeAgentProcess[], defaultTier: string): RuntimeOrchestrationCost;
/**
 * Build the final orchestration result.
 */
export declare function buildOrchestrationResult(sessionId: string, agents: RuntimeAgentProcess[], assignments: RuntimeTaskAssignment[], conflictStrategy: RuntimeConflictStrategy, startTime: number): RuntimeOrchestrationResult;
//# sourceMappingURL=result-collector.d.ts.map