import type { FileEntry, SessionHeader } from "./session-manager-types.ts";
/** Exported for testing */
export declare function loadEntriesFromFile(filePath: string): FileEntry[];
export declare function readSessionHeader(filePath: string): SessionHeader | null;
/** Returns true when a session header marks the session as internal (e.g. a workflow stage session). */
export declare function isInternalHeader(header: SessionHeader | null | undefined): boolean;
export declare function getSessionHeaderCwd(header: SessionHeader): string | undefined;
export declare function sessionCwdMatches(cwd: string | undefined, resolvedCwd: string): boolean;
/** Exported for testing */
export declare function findMostRecentSession(sessionDir: string, cwd?: string, includeInternal?: boolean): string | null;
export declare function serializeSessionEntries(entries: FileEntry[]): string;
export declare function writeSessionEntries(filePath: string, entries: FileEntry[]): void;
export declare function appendSessionEntry(filePath: string, entry: FileEntry): void;
export declare function appendSessionEntries(filePath: string, entries: FileEntry[]): void;
export declare function hasAssistantMessage(entries: FileEntry[]): boolean;
export declare function ensureDirectory(dir: string): void;
//# sourceMappingURL=session-manager-storage.d.ts.map