import { Redis, Cluster, type ClusterNode, type ClusterOptions, type RedisOptions } from 'ioredis'; import { type IRoomCache, type MatchMakerDriver, type SortOptions } from '@colyseus/core'; export declare class RedisDriver implements MatchMakerDriver { private readonly _client; constructor(options?: number | string | RedisOptions | ClusterNode[] | Redis | Cluster, clusterOptions?: ClusterOptions); has(roomId: string): Promise; query(conditions: Partial, sortOptions?: SortOptions): Promise[]>; cleanup(processId: string): Promise; findOne(conditions: Partial, sortOptions?: SortOptions): Promise; private _concurrentRoomCacheRequest?; private _roomCacheRequestByName; private getRooms; update(room: IRoomCache, operations: Partial<{ $set: Partial; $inc: Partial; }>): Promise; persist(room: IRoomCache, _?: boolean): Promise; remove(roomId: string): Promise; shutdown(): Promise; clear(): void; }