/** * 给机器人发送普通消息 * @param {Object} config 配置内容 * @param {string} config.webhookUrl - 钩子链接 * @param {string} config.chatId - 会话id * @param {string} config.alias - 别名 * @param {string} config.content - 内容 * @returns {Promise} Promise * * @example * * sendWxRobotMsg({ * webhookUrl: 'xxx', * chatId: 'xxx', * content: 'xxx', * alias: 'xxx', * }).then(() => { * * }) */ export declare function sendWxRobotMsg({ webhookUrl, chatId, alias, content }: { webhookUrl: string; content: string; chatId?: string; alias?: string | Array; }): Promise; /** * 给机器人发送Markdown消息 * @param {Object} config 配置内容 * @param {string} config.webhookUrl - 钩子链接 * @param {string} config.chatId - 会话id * @param {string} config.content - 内容 * @param {Array} config.attachments - 附加内容 * @returns {Promise} 请求Promise * @example * * sendWxRobotMarkdown({ * webhookUrl: 'xxx', * chatId: 'xxx', * content: 'xxx', * attachments: [] * }).then(() => { * * }) */ export declare function sendWxRobotMarkdown({ webhookUrl, chatId, content, attachments, isV2, }: { webhookUrl: string; content: string; chatId?: string; attachments?: Array; isV2?: boolean; }): Promise; /** * 给机器人发送图片 * @param {Object} config 配置参数 * @param {string} config.webhookUrl 钩子链接 * @param {string} config.chatId 会话id * @param {string} config.content 内容 * @param {string} config.md5Val md5内容 * @returns {Promise} 请求Promise * * @example * * sendWxRobotImg({ * webhookUrl: 'xxx', * chatId: 'xxx', * content: 'xxx', * md5Val: 'xxx' * }).then(() => { * * }) */ export declare function sendWxRobotImg({ webhookUrl, chatId, content, md5Val }: { webhookUrl: string; content: string; md5Val: string; chatId?: string; }): Promise;