import { FeishuMessageEvent } from "./bot.js"; //#region src/mention.d.ts /** * Mention target user info */ type MentionTarget = { openId: string; name: string; key: string; }; /** * Extract mention targets from message event (excluding the bot itself) */ declare function extractMentionTargets(event: FeishuMessageEvent, botOpenId?: string): MentionTarget[]; /** * Check if message is a mention forward request * Rules: * - Group: message mentions bot + at least one other user * - DM: message mentions any user (no need to mention bot) */ declare function isMentionForwardRequest(event: FeishuMessageEvent, botOpenId?: string): boolean; /** * Extract message body from text (remove @ placeholders) */ declare function extractMessageBody(text: string, allMentionKeys: string[]): string; /** * Format @mention for text message */ declare function formatMentionForText(target: MentionTarget): string; /** * Format @everyone for text message */ declare function formatMentionAllForText(): string; /** * Format @mention for card message (lark_md) */ declare function formatMentionForCard(target: MentionTarget): string; /** * Format @everyone for card message */ declare function formatMentionAllForCard(): string; /** * Build complete message with @mentions (text format) */ declare function buildMentionedMessage(targets: MentionTarget[], message: string): string; /** * Build card content with @mentions (Markdown format) */ declare function buildMentionedCardContent(targets: MentionTarget[], message: string): string; //#endregion export { MentionTarget, buildMentionedCardContent, buildMentionedMessage, extractMentionTargets, extractMessageBody, formatMentionAllForCard, formatMentionAllForText, formatMentionForCard, formatMentionForText, isMentionForwardRequest };