import type { EffectiveAgentManifest } from '../agent-manifest/schema.js'; export type AgentRunStatus = 'running' | 'completed' | 'failed' | 'cancelled'; export type AgentRunEventType = 'run.started' | 'model.selected' | 'tool.called' | 'memory.read' | 'memory.write.checked' | 'workflow.selected' | 'boundary.checked' | 'run.completed' | 'run.failed'; export interface AgentRunEvent { id: string; runId: string; type: AgentRunEventType; payload: Record; createdAt: string; } export interface AgentRunTrace { id: string; agentId: string; status: AgentRunStatus; effectiveManifestHash: string; startedAt: string; endedAt?: string; events: AgentRunEvent[]; } export declare function hashEffectiveManifest(manifest: EffectiveAgentManifest): string; export declare function createAgentRunTrace(params: { agentId: string; manifest: EffectiveAgentManifest; now?: Date; }): AgentRunTrace; export declare function appendAgentRunEvent(trace: AgentRunTrace, type: AgentRunEventType, payload: Record, now?: Date): AgentRunTrace; export declare function finishAgentRunTrace(trace: AgentRunTrace, status: Exclude, payload?: Record, now?: Date): AgentRunTrace;