import { Outgoing } from '../interfaces/outgoing'; export type CustomizeWebhookSettings = { /** * 钉钉开放平台网关地址 * * @defaultValue https://oapi.dingtalk.com */ apiBaseUrl?: string; /** * 机器人接口地址 */ endpoint?: string; /** * 授权令牌 */ token: string; /** * 加密密钥 * * see https://open.dingtalk.com/document/robots/customize-robot-security-settings */ secret?: string; }; /** * 自定义机器人接入 * * @see https://open.dingtalk.com/document/isvapp/custom-bot-access-send-message */ export declare class CustomizeWebhook { token: string; secret?: string; apiBaseUrl: string; endpoint: string; constructor(settings: CustomizeWebhookSettings); say(sayable: string | Outgoing.Message): Promise; send(message: Outgoing.Message): Promise; protected buildURL(): string; }