import type { Session, SessionMemory, SessionListItem } from '../types/index.js';
/** Save a session to disk. */
export declare function save(session: Session): Promise<void>;
/** Load a session by ID. Returns null if not found. */
export declare function load(projectId: string, sessionId: string): Promise<Session | null>;
/** List sessions for a project, ordered by lastSavedAt desc. */
export declare function list(projectId: string): Promise<Session[]>;
/** Get the most recent session for a project. */
export declare function getLatest(projectId: string): Promise<Session | null>;
/** Delete a session by ID. Returns true if removed. */
export declare function deleteSession(projectId: string, sessionId: string): Promise<boolean>;
/** List sessions as lightweight items for display. */
export declare function listItems(projectId: string, limit?: number): Promise<SessionListItem[]>;
/** Clean up old sessions: keep max 50, remove sessions older than 30 days. */
export declare function cleanup(projectId: string): Promise<number>;
/** Load cross-conversation memory for a project. */
export declare function loadMemory(projectId: string): Promise<SessionMemory>;
/** Save cross-conversation memory. */
export declare function saveMemory(memory: SessionMemory): Promise<void>;
//# sourceMappingURL=session-store.d.ts.map