/** * 会话存储 — 内存会话追踪(Map 插入序 LRU) */ import type { SessionInfo } from "../types.js"; export declare class SessionStore { private readonly maxSessions; private sessions; private cleanupTimer; constructor(maxSessions?: number, cleanupIntervalMs?: number); /** 记录或更新会话(同时维护 Map 插入序 = 最近活跃序) */ touch(opts: { session: string; accountId: string; chatType: "direct" | "group"; from: string; }): SessionInfo; /** 获取单个会话 */ get(session: string): SessionInfo | undefined; /** 列出所有活跃会话 */ list(filter?: { accountId?: string; chatType?: string; }): SessionInfo[]; /** 删除会话 */ delete(session: string): boolean; /** 会话总数 */ get size(): number; /** 清理过期会话 */ private cleanup; destroy(): void; } //# sourceMappingURL=session-store.d.ts.map