import { Client } from '@joktec/core'; import { ChannelModel, ConfirmChannel } from 'amqplib'; import { RabbitMessage, RabbitConsumeOptions, RabbitProduceOptions, RabbitProduceResult, RabbitPublishOptions, RabbitPublishResult } from './models'; import { RabbitConfig } from './rabbit.config'; export interface RabbitClient extends Client { sendToQueue(queue: string, messages: string[], opts?: RabbitProduceOptions, conId?: string): Promise; publish(exchange: string, messages: { key: string; content: string; }[], opts?: RabbitPublishOptions, conId?: string): Promise; consume(queue: string, callback: (msg: RabbitMessage) => Promise, options: RabbitConsumeOptions, conId: string): Promise; } export interface RabbitProp { channels: { [channelKey: string]: ConfirmChannel; }; hooks: { [channelKey: string]: ((channel: ConfirmChannel) => Promise)[]; }; } //# sourceMappingURL=rabbit.client.d.ts.map