import { RedisOptions, Redis as RedisInstance, Cluster as ClusterInstance } from 'ioredis'; import { SetOptions, Store } from './store'; export { RedisOptions } from 'ioredis'; export declare class RedisStoreConnectError extends Error { constructor(message: string); } /** A RedisStore that is backed by a Redis instance. */ export declare class RedisStore implements Store { readonly redis: RedisInstance | ClusterInstance; constructor(redis: RedisInstance | ClusterInstance); del(key: string): Promise; llen(key: string): Promise; lset(key: string, index: number, value: string): Promise; lindex(key: string, index: number): Promise; rpush(key: string, value: string): Promise; lpush(key: string, value: string): Promise; rpop(key: string): Promise; lpop(key: string): Promise; lrange(key: string, start: number, end: number): Promise; get(key: string): Promise; keys(pattern: string): Promise; exists(key: string): Promise; expire(key: string, seconds: number): Promise; set(key: string, value: string, options?: SetOptions): Promise; disconnect(): void; /** Connects to Redis with the given parameters */ static Create(port?: number, host?: string, options?: RedisOptions): Promise; /** Connects to Redis with the given parameters */ static Create(host?: string, options?: RedisOptions): Promise; /** Connects to Redis with the given parameters */ static Create(options: RedisOptions): Promise; }