import type { TranscriptTurn, TranscriptLine } from './types.js'; /** * Resolve the JSONL file path for a session transcript. * Creates the transcripts directory if it doesn't exist. */ export declare function getTranscriptPath(transcriptsDir: string, sessionId: string): string; /** * Append a single turn to a session transcript (sync, append-only). * Creates the file and directory if they don't exist. */ export declare function appendTurn(transcriptsDir: string, sessionId: string, line: TranscriptLine): void; /** * Read all turns from a session transcript. * Assigns turn_number from line index (1-indexed). * Returns empty array if file doesn't exist or is empty. */ export declare function readTranscript(transcriptsDir: string, sessionId: string): TranscriptTurn[]; /** * List all session IDs that have transcripts. * Returns session IDs sorted by file modification time (newest first). */ export declare function listTranscripts(transcriptsDir: string): string[]; //# sourceMappingURL=transcript.d.ts.map