import { ShallowRef, Ref } from 'vue'; /** * Root 组件实例接口(可扩展) * * 用户可通过模块增强扩展此接口: * ```ts * declare module '@univa/core' { * interface RootInstance { * showToast: (msg: string) => void * navigateToHome: () => void * } * } * ``` */ interface RootInstance { } interface PageContext { rootRef: ShallowRef; isMounted: Ref; onPageMounted: (callback: () => void) => void; onPageUnmounted: (callback: () => void) => void; onPageShowAfterMounted: (callback: () => void) => void; } export type { PageContext as P, RootInstance as R };