/** * Parses a Cursor agent transcript JSONL file into FullMessage[]. * * Cursor writes the transcript to disk BEFORE firing the stop hook, so this * file is always complete and consistent — unlike state.vscdb which is written * asynchronously and may lag behind the hook by several seconds. * * Transcript format (one JSON object per line): * { "role": "user" | "assistant", "message": { "content": [{ "type": "text", "text": "..." }] } } * * Message IDs are derived as "-" since the JSONL has no * bubble IDs. These are stable: line order never changes (only appended). */ import type { FullMessage } from "./types"; /** * Reads a Cursor transcript JSONL and returns FullMessage[]. * * @param transcriptPath Absolute path to the .jsonl file * @param composerId Used to derive stable per-message IDs */ export declare function cursorTranscriptToMessages(transcriptPath: string, composerId: string): FullMessage[]; //# sourceMappingURL=cursor-transcript-to-messages.d.ts.map