import type { HistorySource } from "./history-routes.js"; /** * A saved session's transcript, read without starting it, so a window can show * it the moment it's asked for while the session itself opens. Null for an * archived conversation: loading one thaws it, a write that belongs to a real open. */ export declare function readHistorySource(sessionPath: string, cwd: string, sessionsDir: string, /** A session the daemon has open on that file (a window's, or one working in the background). */ liveFor?: (canonicalPath: string) => HistorySource | undefined): Promise; /** Whether two session paths name the same file. */ export declare function samePath(a: string, b: string): boolean;