/** Sessions grok has stored for `root`, newest first. `updated` is epoch ms. */ export declare function listGrokSessions(root: string): Array<{ id: string; title: string; updated: number; }>; /** ALL grok sessions across every workspace (newest first), carrying each row's * own cwd. Same store as {@link listGrokSessions} but unfiltered — for global * cross-workspace discovery. `updated` is epoch ms. */ export declare function listAllGrokSessions(): Array<{ id: string; title: string; updated: number; cwd: string; }>; export interface TranscriptMsg { role: 'user' | 'assistant' | 'system' | 'tool'; text: string; ts?: number; } /** * Read a grok session's clean chat_history.jsonl into a normalized message * array. Each line is {type|role, content, tool_calls?, tool_call_id?}. Renders * user/assistant/system prose, assistant tool_calls, and tool_result output. * Returns at most `limit` messages (the tail). Read-only; [] on any miss. */ export declare function readGrokTranscript(sessionId: string, cwd?: string, limit?: number): TranscriptMsg[];