/** * Claude's SessionStart source decides where a virgin event WAL begins reading its transcript. * * A positional startup prompt is written before SessionStart reaches the connector. Generic JSONL * adoption therefore parks after the only record that can open the first run, and every later * assistant/tool record maps to nothing. Only `source: "startup"` names a genuinely new session; * resume, fork, clear and compact all point at retained history and must keep ordinary adopt-at-end * semantics. */ import { type DurableSource, type SourceRead } from "@cotal-ai/connector-core"; import type { ClaudeEntry } from "./agui-map.js"; export interface ClaudeTranscriptSourceOpts { /** Production defaults to five seconds. Tests can shorten only the fail-loud deadline. */ startupFileWaitMs?: number; } export declare function readStartupTranscriptWhenReady(read: () => Promise>, opts: { waitMs: number; sleep?: (ms: number) => Promise; }): Promise>; /** Build the transcript source for the exact source value Claude supplied on SessionStart. */ export declare function createClaudeTranscriptSource(path: string, sessionSource: unknown, opts?: ClaudeTranscriptSourceOpts): DurableSource; //# sourceMappingURL=agui-source.d.ts.map