import type { getReplyFromConfig } from "../../../auto-reply/reply.js"; import type { MentionConfig } from "../mentions.js"; import type { WebInboundMsg } from "../types.js"; import type { EchoTracker } from "./echo.js"; import type { GroupHistoryEntry } from "./group-gating.js"; import { loadConfig } from "../../../config/config.js"; export declare function createWebOnMessageHandler(params: { cfg: ReturnType; verbose: boolean; connectionId: string; maxMediaBytes: number; groupHistoryLimit: number; groupHistories: Map; groupMemberNames: Map>; echoTracker: EchoTracker; backgroundTasks: Set>; replyResolver: typeof getReplyFromConfig; replyLogger: ReturnType<(typeof import("../../../logging.js"))["getChildLogger"]>; baseMentionConfig: MentionConfig; account: { authDir?: string; accountId?: string; }; }): (msg: WebInboundMsg) => Promise;