export interface CopilotSessionInfo { id: string; name: string; cwd: string; updated: number; } /** All Copilot sessions on this machine (newest first). `updated` is epoch ms * from events.jsonl mtime (falls back to workspace.yaml / the folder mtime). */ export declare function listAllCopilotSessions(): CopilotSessionInfo[]; /** Copilot sessions whose cwd matches `root` (for per-workspace collectSessions). */ export declare function listCopilotSessions(root: string): Array<{ id: string; title: string; updated: number; }>; export interface TranscriptMsg { role: 'user' | 'assistant' | 'system' | 'tool'; text: string; ts?: number; } /** Parse a copilot session's events.jsonl into a normalized message array. * Renders user/assistant prose, tool calls (assistant.message.toolRequests + * tool.execution_complete results) and the system prompt (heavily truncated). * Returns at most `limit` messages (the tail). */ export declare function readCopilotTranscript(id: string, limit?: number): TranscriptMsg[];