import type { LiveActivityItem, SessionTreeResponse } from "./types.js"; export interface LocalSession { key: string; sessionId: string | null; agentId: string | null; agentName: string | null; displayName: string; kind: string | null; updatedAt: string | null; updatedAtMs: number; abortedLastRun: boolean; systemSent: boolean; modelProvider: string | null; model: string | null; contextTokens: number | null; totalTokens: number | null; } export interface LocalAgent { id: string; name: string; status: "active" | "idle" | "blocked"; currentTask: string | null; runId: string | null; initiativeId: string | null; startedAt: string | null; blockers: string[]; } export interface LocalOpenClawSnapshot { fetchedAt: string; sessions: LocalSession[]; agents: LocalAgent[]; } export declare function loadLocalOpenClawSnapshot(limit?: number): Promise; export declare function toLocalSessionTree(snapshot: LocalOpenClawSnapshot, limit?: number): SessionTreeResponse; /** A "turn" groups consecutive JSONL events into one logical work unit. */ export interface SessionTurn { id: string; userPrompt: string | null; toolNames: string[]; assistantResponse: string | null; errorMessage: string | null; model: string | null; timestamp: string; endTimestamp: string; costTotal: number; eventCount: number; } export declare function toLocalLiveActivity(snapshot: LocalOpenClawSnapshot, limit?: number): Promise<{ activities: LiveActivityItem[]; total: number; }>; export declare function loadLocalTurnDetail(input: { turnId: string; sessionKey?: string | null; runId?: string | null; }): Promise<{ turnId: string; summary: string | null; userPrompt: string | null; timestamp: string | null; model: string | null; } | null>; export declare function toLocalLiveAgents(snapshot: LocalOpenClawSnapshot): { agents: Array<{ id: string; name: string; status: string; currentTask: string | null; runId: string | null; initiativeId: string | null; startedAt: string | null; blockers: string[]; }>; summary: Record; }; export declare function toLocalLiveInitiatives(snapshot: LocalOpenClawSnapshot): { initiatives: Array<{ id: string; title: string; status: string; updatedAt: string | null; sessionCount: number; activeAgents: number; }>; total: number; };