import { ClawdbotConfig } from "./nextclaw-sdk/types.js"; import { MentionTarget } from "./mention.js"; import { FeishuMessageInfo, FeishuSendResult } from "./types.js"; //#region src/send.d.ts /** * Get a message by its ID. * Useful for fetching quoted/replied message content. */ declare function getMessageFeishu(params: { cfg: ClawdbotConfig; messageId: string; accountId?: string; }): Promise; type SendFeishuMessageParams = { cfg: ClawdbotConfig; to: string; text: string; replyToMessageId?: string; /** When true, reply creates a Feishu topic thread instead of an inline reply */ replyInThread?: boolean; /** Mention target users */ mentions?: MentionTarget[]; /** Account ID (optional, uses default if not specified) */ accountId?: string; }; declare function sendMessageFeishu(params: SendFeishuMessageParams): Promise; type SendFeishuCardParams = { cfg: ClawdbotConfig; to: string; card: Record; replyToMessageId?: string; /** When true, reply creates a Feishu topic thread instead of an inline reply */ replyInThread?: boolean; accountId?: string; }; declare function sendCardFeishu(params: SendFeishuCardParams): Promise; declare function updateCardFeishu(params: { cfg: ClawdbotConfig; messageId: string; card: Record; accountId?: string; }): Promise; /** * Edit an existing text message. * Note: Feishu only allows editing messages within 24 hours. */ declare function editMessageFeishu(params: { cfg: ClawdbotConfig; messageId: string; text: string; accountId?: string; }): Promise; //#endregion export { editMessageFeishu, getMessageFeishu, sendCardFeishu, sendMessageFeishu, updateCardFeishu };