import { a as RunSplitTag, R as RunRecord } from './run-record-CP2ObebC.js';

type CodeAgentSessionSource = 'codex' | 'claude-code' | 'opencode' | 'kimi-code' | 'pi';
interface ParsedCodeAgentJsonl {
    entries: unknown[];
    malformedLines: number;
}
interface CodeAgentSessionMetrics {
    entries: number;
    userMessages: number;
    assistantMessages: number;
    reasoningItems: number;
    toolCalls: number;
    toolOutputs: number;
    toolErrors: number;
    patchAttempts: number;
    patchSuccesses: number;
    patchFailures: number;
    turnsStarted: number;
    turnsCompleted: number;
    turnsAborted: number;
    contextCompactions: number;
    prLinks: number;
    fileSnapshots: number;
    graphNodes: number;
    graphEdges: number;
    actionCandidates: number;
    verificationReports: number;
    completionDecisions: number;
    reliabilityRows: number;
    reliabilityLift: number;
    inputTokens: number;
    outputTokens: number;
    cachedTokens: number;
    observedCostUsd: number;
    wallMs: number;
    processScore: number;
}
interface CodeAgentSessionDiagnostic {
    source: CodeAgentSessionSource;
    sessionId: string;
    sourcePath?: string;
    entries: number;
    malformedLines: number;
    inferredScore: boolean;
    hasExplicitTerminalSignal: boolean;
    hasQualityLabel: boolean;
    hasTokenUsage: boolean;
    hasCost: boolean;
    warnings: string[];
}
interface CodeAgentSessionIntakeResult {
    runs: RunRecord[];
    diagnostics: CodeAgentSessionDiagnostic[];
    metrics: CodeAgentSessionMetrics[];
}
interface CodeAgentSessionIntakeOptions {
    entries: unknown[];
    malformedLines?: number;
    sourcePath?: string;
    experimentId?: string;
    candidateId?: string;
    seed?: number;
    splitTag?: RunSplitTag;
    scenarioId?: string;
    model?: string;
    promptHash?: string;
    configHash?: string;
    commitSha?: string;
    score?: number;
}
declare function parseCodeAgentJsonl(jsonl: string): ParsedCodeAgentJsonl;
declare function fromCodexSession(options: CodeAgentSessionIntakeOptions): CodeAgentSessionIntakeResult;
declare function fromClaudeCodeSession(options: CodeAgentSessionIntakeOptions): CodeAgentSessionIntakeResult;
declare function fromOpenCodeSession(options: CodeAgentSessionIntakeOptions): CodeAgentSessionIntakeResult;
declare function fromKimiCodeSession(options: CodeAgentSessionIntakeOptions): CodeAgentSessionIntakeResult;
declare function fromPiSession(options: CodeAgentSessionIntakeOptions): CodeAgentSessionIntakeResult;
declare const fromPigraphSession: typeof fromPiSession;

export { type CodeAgentSessionDiagnostic as C, type ParsedCodeAgentJsonl as P, type CodeAgentSessionIntakeOptions as a, type CodeAgentSessionIntakeResult as b, type CodeAgentSessionMetrics as c, type CodeAgentSessionSource as d, fromCodexSession as e, fromClaudeCodeSession as f, fromKimiCodeSession as g, fromOpenCodeSession as h, fromPiSession as i, fromPigraphSession as j, parseCodeAgentJsonl as p };
