import { SessionStore } from '@struktoai/mirage-core/workspace/session/store'; import type { SessionFields } from '@struktoai/mirage-core/workspace/session/store'; export declare const CAS_SCRIPT: string; export interface RedisSessionStoreOptions { url?: string; keyPrefix?: string; } /** * SessionStore backed by one Redis hash (session id -> JSON fields). * * Sessions and the mount grants they carry survive restarts and are * visible to every workspace pointed at the same key prefix — the seam * that lets one process create a session and another (a kernel tier, a * sibling daemon) bind a mountpoint to it. Writes are single-command * (HSET/HDEL) so mutations stay one round trip. Mirrors the Python * RedisSessionStore. */ export declare class RedisSessionStore extends SessionStore { readonly url: string; private readonly key; private clientPromise; constructor(options?: RedisSessionStoreOptions); private client; casSet(sessionId: string, fields: SessionFields, expectedGeneration: number): Promise; load(): Promise>; set(sessionId: string, fields: SessionFields): Promise; delete(sessionIds: readonly string[]): Promise; replaceAll(entries: Map): Promise; clear(): Promise; close(): Promise; } //# sourceMappingURL=redis.d.ts.map