import type { SessionState } from './state.js'; export interface SessionStore { load(spaceId?: string, rootEntryId?: string, sessionName?: string): SessionState | null | Promise; save(state: SessionState, sessionName?: string): void | Promise; clear(spaceId: string, rootEntryId: string, sessionName?: string): void | Promise; clearAll(): void | Promise; } export interface RedisClient { /** Upstash may return parsed JSON objects when automaticDeserialization is enabled. */ get(key: string): Promise; set(key: string, value: string, options?: { ex?: number; nx?: boolean; }): Promise; del(key: string): Promise; keys(pattern: string): Promise; incr(key: string): Promise; expire(key: string, seconds: number): Promise; } export declare function buildSessionKey(userId: string | undefined, spaceId: string, rootEntryId: string, sessionName?: string): string; export declare function buildSessionNameSuffix(sessionName: string): string; //# sourceMappingURL=session-store.d.ts.map