import { RedisOptions } from './redis'; import { IMessageChannel } from './channels/message-channel'; import { ISubscribableChannel } from './channels/subscribable-channel'; export interface IConnection { createMessageChannel(queue: string): IMessageChannel; createSubscribableChannel(recieiveQueue: string, sendQueue: string): ISubscribableChannel; } export declare class Connection implements IConnection { private static _instance; static getInstance(): Connection; static newConenction(options?: RedisOptions): Connection; private _client; private constructor(); createMessageChannel(queue: string): IMessageChannel; createSubscribableChannel(recieiveQueue: string, sendQueue: string): ISubscribableChannel; }