/** * @typedef {import('./memory-store.js').Store} Store * * @typedef {Object} RedisConfig * @property {any} client ioredis or redis@4 client * @property {string} [keyPrefix] * @property {'ioredis' | 'node-redis'} [dialect] * Override auto-detection for wrapped/proxied clients whose * `constructor.name` doesn't match the underlying driver. */ /** * @param {RedisConfig} options * @returns {Store} */ export function createRedisStore(options: RedisConfig): Store; export type Store = import("./memory-store.js").Store; export type RedisConfig = { /** * ioredis or redis@4 client */ client: any; keyPrefix?: string | undefined; /** * Override auto-detection for wrapped/proxied clients whose * `constructor.name` doesn't match the underlying driver. */ dialect?: "ioredis" | "node-redis" | undefined; };