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