import { EventEmitter } from "events";
import { Redis, Cluster } from "ioredis";
import { ConnectionOptions } from "..";
export declare class Connection extends EventEmitter {
    options: ConnectionOptions;
    private eventListeners;
    connected: boolean;
    redis: Redis | Cluster;
    constructor(options?: ConnectionOptions);
    connect(): Promise<void>;
    loadLua(): void;
    getKeys(match: string, count?: number | null, keysAry?: string[], cursor?: number): Promise<string[]>;
    end(): void;
    key(arg: any, arg2?: any, arg3?: any, arg4?: any): string;
}
