import Vnmf from '../../index' declare module '../../index' { interface VnmfStatic { /** Customized business data monitoring on the interface 。 * * **Instructions for use ** * before use ,Need in 「Mini program management background -Operation and maintenance center -Performance monitoring -Business data monitoring 」China New Construction Monitoring Event ,Configuration monitoring description and alarm type 。Each monitoring event corresponds to the unique monitoring ID,Developers can create at most 128Monitoring event 。 * @supported weapp * @example * ```tsx * Vnmf.reportMonitor('1', 1) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.reportMonitor.html */ reportMonitor( /** monitor ID,exist 「Mini program management background 」Obtained after the new data indicator */ name: string, /** Report ,After processing, it will be 「Mini program management background 」Show the total amount of reporting per minute */ value: number, ): void /** Customized analysis data report interface 。before use ,New events need to be built in the custom analysis of the small program management background ,Configure the event name and field 。 * @supported weapp, tt * @example * ```tsx * Vnmf.reportAnalytics('purchase', { * price: 120, * color: 'red' * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.reportAnalytics.html */ reportAnalytics( /** Incident name */ eventName: string, /** Customized data reported on top ,key The field name in the configuration ,value The data reported 。 */ data: VnmfGeneral.IAnyObject, ): void /** Report on the incident * @supported weapp * @example * ```tsx * Vnmf.reportEvent('purchase', { * price: 120, * color: 'red' * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.reportEvent.html */ reportEvent( /** Incident name */ eventId: string, /** Customized data reported on top ,key The field name in the configuration ,value The data reported 。 */ data: VnmfGeneral.IAnyObject, ): void /** Given the experimental parameter array ,Get the corresponding experimental parameter value * @supported weapp * @example * ```tsx * Vnmf.getExptInfoSync(['color']) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/data-analysis/wx.getExptInfoSync.html */ getExptInfoSync( /** Experimental parameter array ,Get all experimental parameters without filling */ keys?: Array ): VnmfGeneral.IAnyObject } }