import Vnmf from '../../index' declare module '../../index' { interface VnmfStatic { /** Judgment applet API,Call back ,parameter ,Whether components, etc. are available in the current version 。 * @supported weapp, tt * @example * ```tsx * Vnmf.canIUse('openBluetoothAdapter') * Vnmf.canIUse('getSystemInfoSync.return.screenWidth') * Vnmf.canIUse('getSystemInfo.success.screenWidth') * Vnmf.canIUse('showToast.object.image') * Vnmf.canIUse('onCompassChange.callback.direction') * Vnmf.canIUse('request.object.method.GET') * Vnmf.canIUse('live-player') * Vnmf.canIUse('text.selectable') * Vnmf.canIUse('button.open-type.contact') * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.canIUse.html */ canIUse( /** * use `${API}.${method}.${param}.${option}` or `${component}.${attribute}.${option}` Method to call * * **Parameter Description ** * * - `${API}` represent API name * - `${method}` Represents the way of calling ,Valid value is return, success, object, callback * - `${param}` Represents parameters or return values * - `${option}` The attribute of the optional or return value of the parameter * - `${component}` Representative component name * - `${attribute}` Represents component attributes * - `${option}` The value selection of the component attribute */ schema: string ): boolean /** Determine whether it can be used WebP Format * * > Only in the applet platform is only in android and devtools Equipment is available * @supported global */ canIUseWebp(): boolean /** * Will Base64 String into ArrayBuffer data 。 * @supported weapp, h5, rn, tt * @example * ```tsx * const base64 = 'CxYh' * const arrayBuffer = Vnmf.base64ToArrayBuffer(base64) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.base64ToArrayBuffer.html */ base64ToArrayBuffer ( /** Be transformed into ArrayBuffer Objective Base64 String */ base64: string, ): ArrayBuffer /** * Will ArrayBuffer Data transition Base64 String 。 * @supported weapp, h5, rn, tt * @example * ```tsx * const arrayBuffer = new Uint8Array([11, 22, 33]) * const base64 = Vnmf.arrayBufferToBase64(arrayBuffer) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.arrayBufferToBase64.html */ arrayBufferToBase64 ( /** To be converted to Base64 String ArrayBuffer Object */ buffer: ArrayBuffer, ): string /** * Jump pre -load API * @param options Pre -load data * @example * ```tsx * Vnmf.preload({ key: 'value' }) * ``` */ preload (options: Record) /** * Jump pre -load API * @param key Pre -load data key * @param value Pre -load data value * @example * ```tsx * Vnmf.preload('key', 'value') * ``` */ preload (key: string, value: any) /** * Pre -load data * @ignore */ preloadData: Record } }