import { ClawdbotConfig } from "./nextclaw-sdk/types.js"; //#region src/media.d.ts type UploadImageResult = { imageKey: string; }; type UploadFileResult = { fileKey: string; }; type SendMediaResult = { messageId: string; chatId: string; }; /** * Upload an image to Feishu and get an image_key for sending. * Supports: JPEG, PNG, WEBP, GIF, TIFF, BMP, ICO */ declare function uploadImageFeishu(params: { cfg: ClawdbotConfig; image: Buffer | string; imageType?: "message" | "avatar"; accountId?: string; }): Promise; /** * Upload a file to Feishu and get a file_key for sending. * Max file size: 30MB */ declare function uploadFileFeishu(params: { cfg: ClawdbotConfig; file: Buffer | string; fileName: string; fileType: "opus" | "mp4" | "pdf" | "doc" | "xls" | "ppt" | "stream"; duration?: number; accountId?: string; }): Promise; /** * Send an image message using an image_key */ declare function sendImageFeishu(params: { cfg: ClawdbotConfig; to: string; imageKey: string; replyToMessageId?: string; replyInThread?: boolean; accountId?: string; }): Promise; /** * Send a file message using a file_key */ declare function sendFileFeishu(params: { cfg: ClawdbotConfig; to: string; fileKey: string; /** Use "audio" for audio, "media" for video (mp4), "file" for documents */ msgType?: "file" | "audio" | "media"; replyToMessageId?: string; replyInThread?: boolean; accountId?: string; }): Promise; /** * Upload and send media (image or file) from URL, local path, or buffer. * When mediaUrl is a local path, mediaLocalRoots (from core outbound context) * must be passed so loadWebMedia allows the path (post CVE-2026-26321). */ declare function sendMediaFeishu(params: { cfg: ClawdbotConfig; to: string; mediaUrl?: string; mediaBuffer?: Buffer; fileName?: string; replyToMessageId?: string; replyInThread?: boolean; accountId?: string; /** Allowed roots for local path reads; required for local filePath to work. */ mediaLocalRoots?: readonly string[]; }): Promise; //#endregion export { sendFileFeishu, sendImageFeishu, sendMediaFeishu, uploadFileFeishu, uploadImageFeishu };