import { type IRoomCache, type MatchMakerDriver, type SortOptions } from '@colyseus/core';
export declare class MongooseDriver implements MatchMakerDriver {
    constructor(connectionURI?: string);
    createInstance(initialValues?: any): any;
    has(roomId: string): Promise<boolean>;
    query(conditions: Partial<IRoomCache>, sortOptions?: SortOptions): IRoomCache[];
    findOne(conditions: Partial<IRoomCache>, sortOptions?: SortOptions): Promise<IRoomCache>;
    clear(): Promise<void>;
    cleanup(processId: string): Promise<void>;
    remove(roomId: string): Promise<boolean>;
    update(room: IRoomCache, operations: Partial<{
        $set: Partial<IRoomCache>;
        $inc: Partial<IRoomCache>;
    }>): Promise<boolean>;
    persist(room: IRoomCache, create?: boolean): Promise<boolean>;
    shutdown(): Promise<void>;
}
