import { Redis, RedisOptions } from "ioredis"; import * as crypto from "node:crypto"; import { Store } from "@auth0/ai/stores"; type EncryptionOptions = { key?: crypto.BinaryLike; alg?: "aes-256-cbc" | "aes-192-cbc" | "aes-128-cbc"; }; type RedisStoreOptions = Redis | (((RedisOptions & { client: never; }) | { client?: Redis; }) & { encryption?: EncryptionOptions; }); /** * A secure store for Auth0AI that uses Redis as a backend. */ export declare class RedisStore implements Store { private readonly encryptionKey?; private readonly encryptionAlgorithm; private readonly redis; constructor(options?: RedisStoreOptions); private _buildKey; private _encrypt; private _decrypt; get(namespace: string[], key: string): Promise; delete(namespace: string[], key: string): Promise; put(namespace: string[], key: string, value: any, options?: { expiresIn?: number; }): Promise; } export {}; //# sourceMappingURL=index.d.ts.map