import Vnmf from '../../index' declare module '../../index' { namespace openCustomerServiceChat { interface ExtInfo { url: string } interface Option { /** Incoming Information */ extInfo: ExtInfo /** EnterpriseID */ corpId: string /** Whether to send small program bubble messages,Default value:false */ showMessageCard?: boolean /** Bubble Message Title */ sendMessageTitle?: string /** Bubble Message Applet Path */ sendMessagePath?: string /** Bubble Message Image */ sendMessageImg?: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (result: VnmfGeneral.CallbackResult) => void } } interface VnmfStatic { /** Open the commotion.。Further information,We can refer to the introduction microscopic service.:https://work.weixin.qq.com/kf/。 * @supported weapp * @example * ```tsx * Vnmf.openCustomerServiceChat({ * extInfo: {url: ''}, * corpId: '', * success: function (res) { } * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/service-chat/wx.openCustomerServiceChat.html */ openCustomerServiceChat(option?: openCustomerServiceChat.Option): Promise } }