UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

25 lines (24 loc) • 1.04 kB
import { loadConfig } from "openclaw/plugin-sdk/config-runtime"; import type { getReplyFromConfig } from "openclaw/plugin-sdk/reply-runtime"; 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"; export declare function createWebOnMessageHandler(params: { cfg: ReturnType<typeof loadConfig>; verbose: boolean; connectionId: string; maxMediaBytes: number; groupHistoryLimit: number; groupHistories: Map<string, GroupHistoryEntry[]>; groupMemberNames: Map<string, Map<string, string>>; echoTracker: EchoTracker; backgroundTasks: Set<Promise<unknown>>; replyResolver: typeof getReplyFromConfig; replyLogger: ReturnType<(typeof import("openclaw/plugin-sdk/runtime-env"))["getChildLogger"]>; baseMentionConfig: MentionConfig; account: { authDir?: string; accountId?: string; }; }): (msg: WebInboundMsg) => Promise<void>;