/** * In-memory session store for managing active sessions * * Production-ready with: * - Automatic cleanup of expired sessions (every hour) * - Memory leak prevention * - Thread-safe operations * * Note: For distributed deployments requiring shared session state, * replace with Redis or database-backed implementation. */ import type { SapAgentSession } from '../../core/src/types.js'; declare class SessionStore { private sessions; /** * Store a session */ set(sessionId: string, session: SapAgentSession): void; /** * Get a session */ get(sessionId: string): SapAgentSession | undefined; /** * Delete a session */ delete(sessionId: string): boolean; /** * Clean up expired sessions */ cleanup(): void; /** * Get all sessions */ getAll(): SapAgentSession[]; } declare const store: SessionStore; /** * @name clearSessionCleanupTimer * @description Stop the hourly cleanup interval. Called during graceful * shutdown and in test teardown to prevent timer leaks. * * @internal */ declare function clearSessionCleanupTimer(): void; export { store as sessionStore, clearSessionCleanupTimer }; //# sourceMappingURL=session-store.d.ts.map