export type BackgroundTaskStatus = "running" | "completed" | "failed" | "killed"; export interface BackgroundTaskRecord { taskId: string; agentId: string; command: string; commandPreview: string; description?: string; cwd: string; status: BackgroundTaskStatus; startedAt: number; finishedAt: number | null; exitCode: number | null; signal: string | null; outputPath: string; outputLineCount: number; outputBytes: number; notified: boolean; killedReason?: string | null; ownerBootId?: string; lastPulseAt?: number; backgrounded?: boolean; } export interface BackgroundSessionState { agentId: string; updatedAt: number; tasks: BackgroundTaskRecord[]; } export declare class BackgroundCommandStore { private writeChains; private chain; private setChain; readSession(agentId: string): Promise; persistSession(agentId: string, tasks: BackgroundTaskRecord[]): Promise; updateSession(agentId: string, mutator: (state: BackgroundSessionState) => BackgroundTaskRecord[] | null | undefined): Promise; markNotified(agentId: string, taskIds: string[]): Promise; outputPathFor(agentId: string, taskId: string): string; deleteAgent(agentId: string): Promise; listAgents(): Promise; private backupCorrupt; }