import { AgentacctAdapter, type AgentacctSessionEvidence } from "./agentacct-adapter.js"; import type { PlatformAdapter } from "./platform.js"; import { type TelemetryRunRecord } from "./telemetry-correlation.js"; import { type TelemetryStatus } from "./telemetry-runtime.js"; export interface PhoenixTraceEvidence { readonly available: boolean; readonly traceId: string; readonly spanCount?: number; readonly durationMs?: number; readonly status?: string; readonly url: string; readonly detail?: string; } export interface TelemetryExplanation { readonly schemaVersion: 2; readonly status: "complete" | "partial" | "live_only" | "not_found"; readonly runId: string; readonly run?: TelemetryRunRecord; readonly correlation: { readonly status: "exact_session" | "ambiguous" | "unlinked"; readonly basis: readonly string[]; readonly confidence: "exact" | "none"; }; readonly phoenix: PhoenixTraceEvidence; readonly agentacct: { readonly available: boolean; readonly evidence?: AgentacctSessionEvidence; readonly detail: string; }; readonly health: TelemetryStatus; readonly limitations: readonly string[]; } type JsonFetcher = (url: string) => Promise; export declare function explainTelemetry(runId: string, adapter?: PlatformAdapter, options?: { readonly fetchJson?: JsonFetcher; readonly agentacct?: AgentacctAdapter; }): Promise; export declare function renderTelemetryExplanation(value: TelemetryExplanation): string; export {}; //# sourceMappingURL=telemetry-explain.d.ts.map