import { CacheNotifierAdapter, ReceiveHandler, CacheNotifyMessage } from "./cache_notifier";
import { RedisClient } from "redis";
import { RedisConnectionOptions } from "./redis_adapter";
export interface RedisCacheNotifierConfig {
    reader: RedisConnectionOptions;
    writer?: RedisConnectionOptions;
}
export declare class RedisCacheNotifier implements CacheNotifierAdapter {
    subscriber: RedisClient;
    reader: RedisClient;
    writer: RedisClient;
    private _handler;
    private _lastEventTime;
    constructor(opts: RedisCacheNotifierConfig | RedisConnectionOptions);
    send(msg: CacheNotifyMessage): Promise<boolean>;
    start(handler: ReceiveHandler): Promise<void>;
}
