import { TSchema, Static } from '@sidewinder/type'; import { Receiver } from '@sidewinder/channel'; /** In-Memory Redis PubSub Receiver. This type operates on memory queue and can be used in absense of Redis infrastructure */ export declare class PubSubMemoryReceiver implements Receiver> { #private; private readonly schema; private readonly channel; constructor(schema: T, channel: string); /** 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; /** Creates a PubSubMemoryReceiver with the given parameters */ static Create(schema: T, channel: string): PubSubMemoryReceiver; }