import { Cluster, Redis, RedisOptions } from 'ioredis'; import { Static, TSchema } from '@sidewinder/type'; import { Receiver } from '@sidewinder/channel'; /** Redis PubSub Receiver. This type uses broadcast semantics. */ export declare class PubSubRedisReceiver implements Receiver> { #private; private readonly schema; readonly channel: string; private readonly redis; constructor(schema: T, channel: string, redis: Cluster | Redis); /** Async iterator for this Receiver */ [Symbol.asyncIterator](): AsyncGenerator> & undefined> | Awaited> & {}>, void, unknown>; /** Reads the next value from this Receiver */ next(): Promise | null>; /** Closes this receiver */ close(): void; /** Connects to Redis with the given parameters */ static Create(schema: T, topic: string, port?: number, host?: string, options?: RedisOptions): Promise>; /** Connects to Redis with the given parameters */ static Create(schema: T, topic: string, host?: string, options?: RedisOptions): Promise>; /** Connects to Redis with the given parameters */ static Create(schema: T, topic: string, options: RedisOptions): Promise>; }