type AttributionConfidence = "explicit" | "correlated" | "heuristic" | "unknown"; /** Canonical attribution-confidence literals (weakest → strongest order is rank-based). */ declare const ATTRIBUTION_CONFIDENCES: readonly AttributionConfidence[]; declare function isAttributionConfidence(value: unknown): value is AttributionConfidence; /** Rank for threshold comparisons; unknown is weakest (0). */ declare const ATTRIBUTION_CONFIDENCE_RANK: Record; type InspectKind = "RUN" | "AGENT" | "LLM" | "TOOL" | "CHAIN" | "RETRIEVER" | "DECISION" | "RESULT" | "ERROR" | "LOGIC" | "LOG" | "OUTCOME"; interface EventSource { type: "manual" | "json-log" | "log4js" | "pino" | "winston" | "adapter"; file?: string; line?: number; } interface InspectEvent { eventId: string; runId: string; parentId?: string; name: string; kind: InspectKind; timestamp: number; status?: "running" | "ok" | "error"; durationMs?: number; attributes?: Record; confidence: AttributionConfidence; source: EventSource; } interface InspectNode { event: InspectEvent; children: InspectNode[]; depth: number; } /** Bounded parent/cycle summary for visibility-first tree building (6.14.2+). */ interface RelationshipSummary { rootCount: number; selfParentCount: number; cycleCount: number; unresolvedParentCount: number; normalizedEdgeCount: number; } interface InspectRunTree { runId: string; name?: string; status?: "running" | "ok" | "error"; startedAt?: number; endedAt?: number; durationMs?: number; children: InspectNode[]; metadata: { totalEvents: number; confidenceBreakdown: Record; kinds: Record; relationshipSummary?: RelationshipSummary; }; } export { type AttributionConfidence as A, type EventSource as E, type InspectKind as I, type InspectRunTree as a, ATTRIBUTION_CONFIDENCES as b, ATTRIBUTION_CONFIDENCE_RANK as c, type InspectEvent as d, type InspectNode as e, isAttributionConfidence as i };