import { type RedisClient, type SessionStore } from './session-store.js'; import type { SessionState } from './state.js'; /** Parses session JSON from Redis — Upstash may return a deserialized object. */ export declare function parseSessionValue(raw: unknown): SessionState | null; /** Coerces Redis active-pointer values (Upstash may return non-string shapes). */ export declare function coerceActivePointerValue(raw: unknown): string | null; export declare class RedisSessionStore implements SessionStore { private readonly redis; private readonly keyPrefix; constructor(redis: RedisClient, keyPrefix?: string); private fullKey; private activePointerKey; private getUserId; load(spaceId?: string, rootEntryId?: string, sessionName?: string): Promise; save(state: SessionState, sessionName?: string): Promise; clear(spaceId: string, rootEntryId: string, sessionName?: string): Promise; clearAll(): Promise; private readSession; private resolveActiveSessionKey; /** Legacy lookup for sessions saved before active pointers existed. */ private findLatestSessionKeyFallback; } //# sourceMappingURL=redis-session-store.d.ts.map