import { BindingTemplate, NonVoid } from '@loopback/core'; import { ClientOpts, RedisClient } from 'redis'; export declare const REDIS_PUBSUB_EXTENSION = "redis.pubsub.extension"; export interface RedisPubSubConfig extends ClientOpts { } export interface RedisPubSubOptions { channel?: string; } export declare type RedisMessage = { [props: string]: string; }; export declare function asRedisSubscriber(options: RedisPubSubOptions): BindingTemplate; export declare type RedisPubSubReturnVal = NonVoid | any; export interface RedisPubSubEvent { (message: RedisMessage): Promise; } export interface RedisPubSubService { (message: RedisMessage): Promise; }