import { AIRun, AIRunCost } from './ai-run-evidence';
import { buildAIRunTrainingExampleFromRun } from './ai-run-evidence-eval';
export interface AIRunTimelineItem {
    time?: string;
    type: string;
    label: string;
    status?: string;
    message?: string;
    evidenceRefs: string[];
    metadata?: Record<string, any>;
}
export interface AIRunQaHealth {
    outcome?: string;
    infra: {
        pass: number;
        fail: number;
        blocked: number;
        warn: number;
        unknown: number;
    };
    compile?: {
        status?: string;
        stale?: boolean;
        artifactPath?: string;
        message?: string;
    };
    route: {
        pass: number;
        fail: number;
        shellOnly: number;
    };
    business: {
        pass: number;
        fail: number;
        blocked: number;
        missing: boolean;
    };
}
export interface AIRunCostPanel {
    totalTokens: number;
    estimatedUsd: number;
    models: string[];
    categories: Array<{
        category: string;
        totalTokens: number;
        estimatedUsd: number;
        count: number;
    }>;
    sources?: Array<{
        source: string;
        totalTokens: number;
        estimatedUsd: number;
        count: number;
        manualCount: number;
        untrackedCount: number;
    }>;
    surfaces?: Array<{
        surface: string;
        totalTokens: number;
        estimatedUsd: number;
        count: number;
    }>;
    manualEstimatedUsd?: number;
    untrackedEstimatedUsd?: number;
    untrackedWarnings?: string[];
    observabilityStatus?: string;
    missingLedger?: boolean;
    externalCodexMonitorUsed?: boolean;
    nextAction?: string;
}
export interface AIRunOperatorView {
    runId?: string;
    source: string;
    title?: string;
    outcome: string;
    failureClass: string;
    nextAction?: string;
    warnings: string[];
    timeline: AIRunTimelineItem[];
    qaHealth: AIRunQaHealth;
    costPanel: AIRunCostPanel;
    trainingExample: ReturnType<typeof buildAIRunTrainingExampleFromRun>;
}
export declare function buildAIRunTimeline(run: AIRun): AIRunTimelineItem[];
export declare function buildAIRunQaHealth(run: AIRun): AIRunQaHealth;
export declare function buildAIRunCostPanel(cost?: AIRunCost, run?: AIRun): AIRunCostPanel;
export declare function buildAIRunFalsePassWarnings(run: AIRun): string[];
export declare function buildAIRunOperatorView(run: AIRun): AIRunOperatorView;
