import Vnmf from './index' declare module './index' { interface VnmfStatic { /** * Page display when displaying 。 * @supported global */ useDidShow(callback: () => void): void /** * The recovery when the page is hidden 。 * @supported global */ useDidHide(callback: () => void): void /** * The callback when pulling down and refreshing 。 * @supported global */ usePullDownRefresh(callback: () => void): void /** * The callback when drawing to the bottom 。 * @supported global */ useReachBottom(callback: () => void): void /** * The callback when the page is rolling 。 * @supported global */ usePageScroll(callback: (payload: PageScrollObject) => void): void /** * The callback when the page size changes 。 * @supported global */ useResize(callback: (payload: PageResizeObject) => void): void /** * The callback of page forwarding 。 * @supported weapp */ useShareAppMessage(callback: (payload: ShareAppMessageObject) => ShareAppMessageReturn): void /** * Currently tab Page time ,tab The callback when clicked 。 * @supported weapp, rn */ useTabItemTap(callback: (payload: TabItemTapObject) => void): void /** * User Click the menu in the upper right corner “collect ”The callback of the button 。 * @supported weapp */ useAddToFavorites(callback: (payload: AddToFavoritesObject) => AddToFavoritesReturnObject): void /** * User Click the menu in the upper right corner “Share to the circle of friends ”The callback of the button 。 * @supported weapp */ useShareTimeline(callback: () => ShareTimelineReturnObject): void /** * Reserve status callback before the page destroy * @supported weapp */ useSaveExitState(callback: () => { data: Record expireTimeStamp?: number }): void /** * The recovery of the applet initialization is completed 。 * @supported weapp, h5 */ useLaunch(callback: (options: getLaunchOptionsSync.LaunchOptions) => void): void /** * Exic programs incurring script error or API Call the callback when calling an error 。 * @supported weapp, h5 */ useError(callback: (error: string) => void): void /** * The pages to be opened when the applet is opened does not exist 。 * @supported weapp, h5 * @h5 Multi -page mode does not support this method */ usePageNotFound(callback: (res: { path: string, query: Record, isEntryPage: boolean, [key: string]: any }) => void): void /** * The callback of the page load is complete 。 * @supported weapp, h5 */ useLoad(callback: () => void): void /** * The callback when the page is uninstalled 。 * @supported weapp, h5 */ useUnload(callback: () => void): void /** * The recovery of the first rendering of the page 。 * The page is ready at this time ,You can interact with the view layer 。 * @supported weapp, h5 */ useReady(callback: () => void): void /** * Get the current routing parameter 。 * @supported global */ useRouter> = Partial>>(dynamic?: boolean): RouterInfo /** * The title of the navigation bar is clicked 。 * @supported alipay */ useTitleClick(callback: () => void): void /** * The additional icon of the navigation bar is clicked when clicked 。 * @supported alipay */ useOptionMenuClick(callback: () => void): void /** * Return when dropping down 。 * @supported alipay, h5 */ usePullIntercept(callback: () => void): void } }