import type { DirectBatch, DirectMessage } from './transport.js'; /** Matrix clients may send caption and file as separate adjacent events. Only * coalesce a bounded burst containing media, never plain-text conversations. */ export declare function groupDirectMessages(messages: readonly DirectMessage[], defaultTarget?: string): DirectMessage[][]; /** One bounded lookahead, not a background queue. The cursor is committed only * after every collected event is handed off, so restart never discards a buffer. */ export declare function collectDirectBatch(first: DirectBatch, poll: (cursor: string, signal: AbortSignal) => Promise, signal: AbortSignal, waitMs?: number): Promise; //# sourceMappingURL=inbound-batch.d.ts.map