import Vnmf from '../../../index' declare module '../../../index' { namespace getLaunchOptionsSync { /** Start parameters */ interface LaunchOptions { /** Start the path of the applet */ path: string /** Start applet query parameter */ query: VnmfGeneral.IAnyObject /** Start applet [Scene value ](https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/scene.html) */ scene: number /** shareTicket,For details [Get more forwarding information ](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) */ shareTicket: string /** Source information 。From another small program 、Public account or App Back when entering the applet 。Otherwise, return `{}`。(Please note later ) */ referrerInfo: LaunchOptions.ReferrerInfo /** Open file information array ,Only open from the chat material scene (scenefor 1173)Only to carry this parameter */ forwardMaterials?: LaunchOptions.ForwardMaterial[] /** Chat from WeChat group /When you open the applet alone ,chatType Express the specific WeChat group chat /Single chat */ chatType?: keyof LaunchOptions.ChatType /** API category */ apiCategory?: keyof LaunchOptions.ApiCategory } namespace LaunchOptions { /** Source information */ interface ReferrerInfo { /** Source applet 、Public account or App of appId */ appId?: string /** Data from the source applet passed by ,scene=1037or 1038Timely support */ extraData?: VnmfGeneral.IAnyObject } /** ChatType Type legal value */ interface ForwardMaterial { /** File mimetypetype */ type: string /** file name */ name: string /** file path (in the case of webviewThat is url) */ path: string /** File size */ size: number } /** ChatType Type legal value */ interface ChatType { /** WeChat contact single chat */ 1 /** Corporate WeChat contact single chat */ 2 /** Ordinary WeChat group chat */ 3 /** Enterprise WeChat mutual communication group chat */ 4 } /** API Category legal value */ interface ApiCategory { /** Default category */ default /** Native functional ,Live broadcast product 、Application of commodity window and other scenarios */ nativeFunctionalized /** Only browse ,The applets of the scene of the circle of friends are open */ browseOnly /** Embedded ,The applet that opens the half -screen applet capability */ embedded } } } namespace getEnterOptionsSync { /** Start parameters */ interface EnterOptions { /** Start the path of the applet */ path: string /** Start applet [Scene value ](https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/scene.html) */ scene: number /** Start applet query parameter */ query: VnmfGeneral.IAnyObject /** shareTicket,For details [Get more forwarding information ](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html) */ shareTicket: string /** Source information 。From another small program 、Public account or App Back when entering the applet 。Otherwise, return `{}`。(Please note later ) */ referrerInfo: EnterOptions.ReferrerInfo /** Open file information array ,Only open from the chat material scene (scenefor 1173)Only to carry this parameter */ forwardMaterials?: EnterOptions.ForwardMaterial[] /** Chat from WeChat group /When you open the applet alone ,chatType Express the specific WeChat group chat /Single chat */ chatType?: keyof EnterOptions.ChatType /** API category */ apiCategory?: keyof EnterOptions.ApiCategory } namespace EnterOptions { /** Source information */ interface ReferrerInfo { /** Source applet 、Public account or App of appId */ appId?: string /** Data from the source applet passed by ,scene=1037or 1038Timely support */ extraData?: VnmfGeneral.IAnyObject } /** ChatType Type legal value */ interface ForwardMaterial { /** File mimetypetype */ type: string /** file name */ name: string /** file path (in the case of webviewThat is url) */ path: string /** File size */ size: number } /** ChatType Type legal value */ interface ChatType { /** WeChat contact single chat */ 1 /** Corporate WeChat contact single chat */ 2 /** Ordinary WeChat group chat */ 3 /** Enterprise WeChat mutual communication group chat */ 4 } /** API Category legal value */ interface ApiCategory { /** Default category */ default /** Native functional ,Live broadcast product 、Application of commodity window and other scenarios */ nativeFunctionalized /** Only browse ,The applets of the scene of the circle of friends are open */ browseOnly /** Embedded ,The applet that opens the half -screen applet capability */ embedded } } } interface VnmfStatic { /** * Get the parameters when the applet starts 。and [`App.onLaunch`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onlaunchobject-object) The callback parameters are the same 。 * * **Notice ** * Some versions are none `referrerInfo`Will return when `undefined`,Suggestion `options.referrerInfo && options.referrerInfo.appId` Judgment 。 * @supported weapp, tt * @see https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html */ getLaunchOptionsSync(): getLaunchOptionsSync.LaunchOptions /** * Get the parameters when the applet starts 。If it is now cold start ,The return value and [`App.onLaunch`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onLaunch-Object-object) The callback parameters are the same ;If it is currently hot startup ,The return value and [`App.onShow`](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object) Consistent 。 * * **Notice ** * Some versions are none `referrerInfo` Will return when `undefined`,Suggestion `options.referrerInfo && options.referrerInfo.appId` Judgment 。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getEnterOptionsSync.html */ getEnterOptionsSync(): getEnterOptionsSync.EnterOptions } }