import { IRedisOptions } from "../../redis/RedisOptions" ; export interface ISentinelAddress { port : number ; host : string ; family ? : number ; } export interface IRedisClient { options : IRedisOptions ; sentinel ( subcommand , name ) : Promise < string [ ] > ; sentinel ( subcommand , name ) : Promise < string [ ] > ; sentinel ( subcommand , name ) : Promise < string [ ] > ; subscribe ( ... channelNames ) : Promise < number > ; on ( event , callback ) : void ; on ( event , callback ) : void ; on ( event , callback ) : void ; disconnect ( ) : void ; } export interface ISentinel { address : Partial < ISentinelAddress > ; client : IRedisClient ; }