import type { AnyEvent } from '../types.js'; export declare function saveEvents(events: AnyEvent[]): Promise; export declare function getSessionEvents(sessionId: string): Promise; export declare function getAllSessions(): Promise>; export declare function clearSession(sessionId: string): Promise; export declare function clearAllSessions(): Promise; /** Remove sessions older than RETENTION_DAYS. Called on init. */ export declare function purgeOldSessions(): Promise; export declare function isUsingMemoryFallback(): boolean;