import React from 'react'; export type Callback = (options?: T) => any; export declare enum AppLifecycle { launch = "onLaunch", show = "onShow", hide = "onHide", error = "onError", pageNotFound = "onPageNotFound", unhandledRejection = "onUnhandledRejection" } export declare enum PageLifecycle { load = "onLoad", ready = "onReady", show = "onShow", hide = "onHide", unload = "onUnload", resize = "onResize", pullDownRefresh = "onPullDownRefresh", reachBottom = "onReachBottom", shareAppMessage = "onShareAppMessage", pageScroll = "onPageScroll" } export declare enum ComponentLifecycle { created = "onCreated", attached = "onAttached", ready = "onReady", moved = "onMoved", detached = "onDetached" } export declare class LifecycleContext { lifecycle: Record>; constructor(); registerLifecycle(name: string, callback: Callback): (() => void) | undefined; } export declare const PageLifecycleGlobalContext: React.Context; export declare const AppLifecycleGlobalContext: React.Context; export declare const ComponentLifecycleGlobalContext: React.Context;