export type AgentRunStatus = "running" | "stopped"; export type AgentRunRecord = { runId: string; agentId: string; pid: number | null; message: string | null; provider: string | null; model: string | null; initiativeId: string | null; initiativeTitle: string | null; workstreamId: string | null; taskId: string | null; startedAt: string; stoppedAt: string | null; status: AgentRunStatus; }; type PersistedAgentRuns = { updatedAt: string; runs: Record; }; export declare function readAgentRuns(): PersistedAgentRuns; export declare function getAgentRun(runId: string): AgentRunRecord | null; export declare function upsertAgentRun(input: Omit & { startedAt?: string; stoppedAt?: string | null; status?: AgentRunStatus; }): PersistedAgentRuns; export declare function markAgentRunStopped(runId: string): AgentRunRecord | null; export declare function clearAgentRuns(): void; export {};