import type { Session } from "../session.js"; import type { SessionStore, RateLimiterAdapter, RateLimitState } from "./types.js"; export declare class MemorySessionStore implements SessionStore { private sessions; private userIndex; get(id: string): Promise; set(id: string, session: Session): Promise; delete(id: string): Promise; getByUser(userId: string): Promise; cleanup(ttlMs: number): Promise; } export declare class MemoryRateLimiter implements RateLimiterAdapter { private requests; private costs; private config; constructor(config?: { maxPerMinute?: number; maxPerHour?: number; maxCostPerHour?: number; }); private cleanOldRequests; check(key: string): Promise; record(key: string, cost?: number): Promise; reset(key: string): Promise; getStats(key: string): Promise<{ requestsLastMinute: number; requestsLastHour: number; costLastHour: number; }>; } //# sourceMappingURL=memory.d.ts.map