import type { loadConfig } from "agdi/plugin-sdk/config-runtime"; import type { getReplyFromConfig } from "agdi/plugin-sdk/reply-runtime"; import { type resolveAgentRoute } from "agdi/plugin-sdk/routing"; import type { getChildLogger } from "agdi/plugin-sdk/runtime-env"; 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;