import Vnmf from '../../index' declare module '../../index' { /** Registering a page in applet。Take one. `Object` Type Parameters,Initial data for its specified page、Life-cycle regression、Event-processing functions, etc.。 */ interface Page { /** Path to the current page * @note Recommended for use Vnmf.getCurrentInstance().router?.path Methodology */ route?: string __route__?: string /** @ignore */ [k: string]: any } namespace getApp { interface Option { /** Yes. `App` Returns default achievement when undefined。♪ WhenAppWhen called,The properties defined in the default realization will be overwritten and merged toAppMedium。General for stand-alone subcontracting */ allowDefault?: boolean } type Instance = Option & T } /** Registration Applet。Take one. `Object` Parameters,The return of the life cycle its designated microprocedure.。 * @ignore */ interface App extends VnmfGeneral.IAnyObject { /** @ignore */ [key: string]: any } interface VnmfStatic { /** Retrieve the current pavilion。The first element in the array is page,The last element is the current page。 * __Attention.:__ * - __Do not try to modify the pavilion,Will cause route and page state error。__ * - Don't be here. `App.onLaunch` Call when you're in. `getCurrentPages()`,Right now. `page` It's not generated yet.。 * @supported weapp, h5, rn, tt * @example * ```tsx * Vnmf.getCurrentPages().length * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/reference/api/getCurrentPages.html */ getCurrentPages(): Page[] /** Retrieve the only small program in world App Example。 * @supported weapp, alipay, h5, rn, jd, qq, swan, tt, quickapp * @see https://developers.weixin.qq.com/miniprogram/dev/reference/api/getApp.html */ getApp(opts?: getApp.Option): getApp.Instance } }