import { I as InspectKind, A as AttributionConfidence } from './inspect-event-ClM5Z8om.js'; type PersistedSchemaVersion = "0.2" | "1.0"; type PersistedEventSourceType = "manual" | "json-log" | "log4js" | "adapter" | "ai-sdk" | "otel"; interface PersistedEventSource { type: PersistedEventSourceType; name?: string; version?: string; } type PersistedEventStatus = "running" | "ok" | "error" | "unknown"; interface PersistedInspectError { name?: string; message: string; code?: string; } interface PersistedTokenUsage { input?: number; output?: number; total?: number; /** Cache-read tokens (informational; never added to total). */ cached?: number; /** Cache-write / cache-creation tokens (informational; never added to total). */ cacheWrite?: number; /** Reasoning / thinking tokens when providers report them separately. */ reasoning?: number; } interface PersistedTraceContext { traceId?: string; spanId?: string; parentSpanId?: string; } interface PersistedInspectEventBase { eventId: string; runId: string; parentId?: string; kind: InspectKind; name: string; status?: PersistedEventStatus; timestamp: string; startedAt?: string; endedAt?: string; durationMs?: number; confidence: AttributionConfidence; source: PersistedEventSource; attributes?: Record; inputSummary?: unknown; outputSummary?: unknown; error?: PersistedInspectError; tokenUsage?: PersistedTokenUsage; trace?: PersistedTraceContext; } interface PersistedInspectEventV02 extends PersistedInspectEventBase { schemaVersion: "0.2"; } interface PersistedInspectEventV10 extends PersistedInspectEventBase { schemaVersion: "1.0"; [key: string]: unknown; } type PersistedInspectEvent = PersistedInspectEventV02 | PersistedInspectEventV10; /** * Runtime guard for a v0.2 or v1.0 {@link PersistedInspectEvent} JSON object. * * Timestamp fields (`timestamp`, `startedAt`, `endedAt`) are validated as * non-empty strings only — stricter ISO-8601 parsing may be added later. */ declare function isPersistedInspectEvent(value: unknown): value is PersistedInspectEvent; declare function isPersistedInspectEventV02(value: unknown): value is PersistedInspectEventV02; declare function isPersistedInspectEventV10(value: unknown): value is PersistedInspectEventV10; export { type PersistedInspectEvent as P, type PersistedEventSource as a, type PersistedEventSourceType as b, type PersistedEventStatus as c, type PersistedInspectError as d, type PersistedInspectEventV02 as e, type PersistedInspectEventV10 as f, type PersistedSchemaVersion as g, type PersistedTokenUsage as h, type PersistedTraceContext as i, isPersistedInspectEvent as j, isPersistedInspectEventV02 as k, isPersistedInspectEventV10 as l };