import type { SessionMetadata, SessionMetadataPatch, SessionStateSaveMetadata, SessionUsageSnapshot } from "./session-types.js";
export declare function getSessionMetadata(sessionId: string, projectRoot: string): SessionMetadata | null;
export declare function readSessionMetadata(sessionId: string, projectRoot: string, defaults?: {
    messageCount?: number;
}): Promise<SessionMetadata>;
export declare function saveSessionState(sessionId: string, usageSnapshot: SessionUsageSnapshot, metadata: SessionStateSaveMetadata, projectRoot: string): Promise<void>;
export declare function updateSessionMetadata(sessionId: string, patch: SessionMetadataPatch, projectRoot: string): Promise<SessionMetadata | null>;
export declare function persistTaskSummary(sessionId: string, projectRoot: string, summary: string, generatedAtTurn: number): Promise<void>;
