import type { RunTokenUsage } from '../run-record';
import { type WorkflowPhaseGraph } from './phase-graph';
import type { WorkflowTraceEnvelope, WorkflowTraceSummary } from './types';
export interface WorkflowDelegateTraceSummary {
    index: number | null;
    label: string | null;
    phase: string | null;
    costUsd: number | null;
    tokenUsage: RunTokenUsage | null;
    trace: unknown;
}
export interface WorkflowDelegateFailureSummary {
    index: number | null;
    label: string | null;
    phase: string | null;
    durationMs: number | null;
    message: string | null;
    code: string | null;
}
export interface WorkflowCheckpointTraceSummary extends WorkflowDelegateTraceSummary {
    output: unknown;
}
export interface WorkflowExecutionSummary extends WorkflowTraceSummary {
    source?: string;
    eventKinds: Record<string, number>;
    phases: string[];
    phaseGraph: WorkflowPhaseGraph;
    agentRuns: WorkflowDelegateTraceSummary[];
    loopRuns: WorkflowDelegateTraceSummary[];
    verifierOutputs: WorkflowCheckpointTraceSummary[];
    analystOutputs: WorkflowCheckpointTraceSummary[];
    reviewerOutputs: WorkflowCheckpointTraceSummary[];
    agentFailureDetails: WorkflowDelegateFailureSummary[];
    loopFailureDetails: WorkflowDelegateFailureSummary[];
    verifierFailureDetails: WorkflowDelegateFailureSummary[];
    analystFailureDetails: WorkflowDelegateFailureSummary[];
    reviewerFailureDetails: WorkflowDelegateFailureSummary[];
}
export interface SummarizeWorkflowExecutionOptions {
    source?: string;
}
export declare function summarizeWorkflowExecution(input: WorkflowTraceEnvelope | unknown, options?: SummarizeWorkflowExecutionOptions): WorkflowExecutionSummary;
//# sourceMappingURL=summary.d.ts.map