import type { JsonlSessionFile } from "./jsonl-session-store.js"; import type { SessionSummary } from "./types.js"; /** * Summarizes an unconverted legacy session without parsing all of it. A session larger than the * window is described by its header, the lines up to its first user message, and the lines in its * last window. Names, summaries and search text written in between are not seen, and the message * count is a lower bound; opening the session converts it in full. A line in either end that * cannot be parsed marks the copy as damaged, as it would for a full read. */ export declare function summarizeLegacySession(file: JsonlSessionFile, size: number, modifiedMs: number): Promise; /** * The time of the latest message in a legacy session, read backwards from its end without parsing * the rest. The window starts at the listing's tail window and doubles until it holds a complete * message or reaches the header, so a final message larger than the window is still dated by its * own timestamp. Undefined only when the session holds no message. A line in the window that cannot * be parsed rejects, as it would for a listing. */ export declare function latestLegacyMessageTime(location: string, size: number): Promise; //# sourceMappingURL=legacy-session-summary.d.ts.map