export interface TranscriptMessage { role: string; text: string; } export interface ReadTranscriptOptions { sessionStateDir?: string; maxBytes?: number; maxMessages?: number; } export declare const DEFAULT_MAX_BYTES: number; export declare const DEFAULT_MAX_MESSAGES = 200; export declare function isValidSessionId(uuid: string): boolean; export declare function sessionEventsPath(uuid: string, base?: string): string; /** Newest session-state dir by mtime — used when the wrapper triggers a review * post-exit and doesn't know the just-finished session's UUID. */ export declare function latestSessionId(base?: string): string | null; /** All session dir names under the session-state base (for before/after diff). */ export declare function listSessionIds(base?: string): string[]; /** The session that appeared since `before` — i.e. the one the just-finished * headless `copilot -p` run created. Returns null if none is new, so the * wrapper SKIPS rather than guessing the wrong session. */ export declare function newestSessionSince(before: string[], base?: string): string | null; export declare function parseTranscript(raw: string): TranscriptMessage[]; export declare function readSessionTranscript(uuid: string, options?: ReadTranscriptOptions): TranscriptMessage[];