import { Static, TSchema } from '@sidewinder/type'; import { SyncSender } from '@sidewinder/channel'; export declare class MemorySenderError extends Error { constructor(message: string); } /** In-Memory Redis Sender. This type operates on memory queue and can be used in absense of Redis infrastructure */ export declare class MemorySender implements SyncSender> { #private; private readonly schema; private readonly channel; constructor(schema: T, channel: string); /** Sends a value to this sender */ send(value: Static): Promise; /** Sends an error to this sender and closes. Note that redis channels do not transmit the error. */ error(error: Error): Promise; /** Ends this sender and closes */ end(): Promise; /** Creates a MemorySender with the given parameters */ static Create(schema: T, channel: string): MemorySender; }