import { MQMessage, MQStats, MQSubscribeOptions } from "$sb/types.ts"; export interface MessageQueue { batchSend(queue: string, bodies: any[]): Promise; send(queue: string, body: any): Promise; subscribe( queue: string, options: MQSubscribeOptions, callback: (messages: MQMessage[]) => Promise | void, ): () => void; ack(queue: string, id: string): Promise; batchAck(queue: string, ids: string[]): Promise; getQueueStats(queue: string): Promise; getAllQueueStats(): Promise>; }