import type { getReplyFromConfig } from "../../../auto-reply/reply.js"; import type { loadConfig } from "../../../config/config.js"; import type { getChildLogger } from "../../../logging.js"; import type { resolveAgentRoute } from "../../../routing/resolve-route.js"; import type { WebInboundMsg } from "../types.js"; export type GroupHistoryEntry = { sender: string; body: string; timestamp?: number; id?: string; senderJid?: string; }; export declare function processMessage(params: { cfg: ReturnType; msg: WebInboundMsg; route: ReturnType; groupHistoryKey: string; groupHistories: Map; groupMemberNames: Map>; connectionId: string; verbose: boolean; maxMediaBytes: number; replyResolver: typeof getReplyFromConfig; replyLogger: ReturnType; backgroundTasks: Set>; rememberSentText: (text: string | undefined, opts: { combinedBody?: string; combinedBodySessionKey?: string; logVerboseMessage?: boolean; }) => void; echoHas: (key: string) => boolean; echoForget: (key: string) => void; buildCombinedEchoKey: (p: { sessionKey: string; combinedBody: string; }) => string; maxMediaTextChunkLimit?: number; groupHistory?: GroupHistoryEntry[]; suppressGroupHistoryClear?: boolean; }): Promise;