/** * Copyright (c) 2026 ByteDance Ltd. and/or its affiliates * SPDX-License-Identifier: MIT * * Event parsing for inbound Feishu messages. * * Converts a raw FeishuMessageEvent into a normalised MessageContext. * All mention information is captured in `mentions: MentionInfo[]`; * downstream logic derives `mentionedBot` and non-bot targets from it. * * When `expandCtx` is provided, `cfg` and `accountId` are passed into * the converter context so that async converters (e.g. merge_forward) * can make API calls during parsing. */ import type { ClawdbotConfig } from "openclaw/plugin-sdk"; import type { FeishuMessageEvent, MessageContext } from "../types.js"; /** * Parse a raw Feishu message event into a normalised MessageContext. * * @param expandCtx When provided, cfg/accountId are used to create * callbacks for async converters (e.g. merge_forward) * to fetch sub-messages and resolve sender names. */ export declare function parseMessageEvent(event: FeishuMessageEvent, botOpenId?: string, expandCtx?: { cfg: ClawdbotConfig; accountId?: string; }): Promise; //# sourceMappingURL=parse.d.ts.map