import { App, Ref } from "vue"; //#region src/types.d.ts type RouteParams = Record; type LocationQuery = Record; type RouteMeta = Record; type AnimationType = 'auto' | 'none' | 'slide-out-right' | 'slide-out-left' | 'slide-out-top' | 'slide-out-bottom' | 'fade-out' | 'zoom-in' | 'zoom-fade-in' | 'pop-out'; type RGBAColor = `rgba(${number}, ${number}, ${number}, ${number})`; type HEXColor = `#${string}`; type PxSize = `${number}px`; type PercentageSize = `${number}%`; type ThemeVar = `@${string}`; interface RouteLocationBase { animationType?: AnimationType; animationDuration?: number; } interface RouteBackLocation extends RouteLocationBase { delta?: number; } interface RouteRecordRaw { path: string; name?: string; meta?: RouteMeta; style?: GlobalStyle; aliasPath?: string; [key: string]: any; } interface AppPlus { background?: HEXColor; bounce?: string; popGesture?: 'close' | 'none'; softInputNavBar?: 'auto' | 'none'; softInputMode?: 'adjustResize' | 'adjustPan'; pullToRefresh?: { support?: boolean; color?: HEXColor; style?: 'default' | 'circle'; height?: PxSize | PercentageSize; range?: PxSize | PercentageSize; offset?: PxSize | PercentageSize; contentdown?: { caption?: string; [x: string]: any; }; contentover?: { caption?: string; [x: string]: any; }; contentrefresh?: { caption?: string; [x: string]: any; }; [x: string]: any; }; scrollIndicator?: string; animationType?: AnimationType; animationDuration?: number; [x: string]: any; } interface H5 { pullToRefresh?: { color?: HEXColor; offset?: PxSize | PercentageSize; [x: string]: any; }; [x: string]: any; } interface MpAlipay { allowsBounceVertical?: 'YES' | 'NO'; backgroundColor?: HEXColor | ThemeVar; backgroundImageColor?: HEXColor; backgroundImageUrl?: string; defaultTitle?: string; enableScrollBar?: 'YES' | 'NO'; gestureBack?: 'YES' | 'NO'; onReachBottomDistance?: number; pullRefresh?: boolean; responsive?: boolean; showTitleLoading?: 'YES' | 'NO'; transparentTitle?: 'always' | 'auto' | 'none'; titlePenetrate?: 'YES' | 'NO'; titleImage?: string; titleBarColor?: HEXColor; navigationBarFrontColor?: 'black' | 'white'; [x: string]: any; } interface MpBaidu { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; onReachBottomDistance?: number; textSizeAdjust?: 'auto' | 'none'; pageOrientation?: 'auto' | 'portrait' | 'landscape'; [x: string]: any; } interface MpJd { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; [x: string]: any; } interface MpKuaishou { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; onReachBottomDistance?: number; pageOrientation?: 'auto' | 'portrait' | 'landscape'; [x: string]: any; } interface MpLark { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; transparentTitle?: 'always' | 'auto' | 'none'; navigationStyle?: 'default' | 'custom'; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; onReachBottomDistance?: number; PCMode?: Omit; [x: string]: any; } interface MpQq { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; pageOrientation?: 'auto' | 'portrait' | 'landscape'; [x: string]: any; } interface MpToutiao { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; onReachBottomDistance?: number; transparentTitle?: 'always' | 'auto' | 'none'; skeleton?: { config?: { timeout?: number; loading?: 'spin' | 'chiaroscuro' | 'shine'; image?: { shape?: 'circle' | 'rect'; color?: HEXColor; [x: string]: any; }; button?: { color?: HEXColor; [x: string]: any; }; backgroundColor?: HEXColor; mode?: 'fullscreen' | 'auto'; cssUnit?: 'px' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax'; decimal?: number; [x: string]: any; }; page?: Record; [x: string]: any; }; [x: string]: any; } interface MpWeixin { navigationBarBackgroundColor?: HEXColor | ThemeVar; navigationBarTextStyle?: 'black' | 'white' | ThemeVar; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; homeButton?: boolean; backgroundColor?: HEXColor | ThemeVar; backgroundTextStyle?: 'dark' | 'light' | ThemeVar; backgroundColorTop?: HEXColor | ThemeVar; backgroundColorBottom?: HEXColor | ThemeVar; enablePullDownRefresh?: boolean; onReachBottomDistance?: number; pageOrientation?: 'auto' | 'portrait' | 'landscape'; restartStrategy?: 'homePage' | 'homePageAndLatestPage'; initialRenderingCache?: 'static' | 'dynamic'; visualEffectInBackground?: 'hidden' | 'none'; handleWebviewPreload?: 'static' | 'manual' | 'auto'; [x: string]: any; } interface GlobalStyle { 'navigationBarBackgroundColor'?: HEXColor | ThemeVar; 'navigationBarTextStyle'?: 'black' | 'white' | ThemeVar; 'navigationBarTitleText'?: string; 'navigationBarShadow'?: { colorType?: 'grey' | 'blue' | 'green' | 'orange' | 'red' | 'yellow'; }; 'navigationStyle'?: 'default' | 'custom'; 'backgroundColor'?: HEXColor | ThemeVar; 'backgroundTextStyle'?: 'dark' | 'light' | ThemeVar; 'enablePullDownRefresh'?: boolean; 'onReachBottomDistance'?: number; 'backgroundColorTop'?: HEXColor | ThemeVar; 'backgroundColorBottom'?: HEXColor | ThemeVar; 'titleImage'?: string; 'transparentTitle'?: 'always' | 'auto' | 'none'; 'titlePenetrate'?: 'YES' | 'NO'; 'pageOrientation'?: string; 'animationType'?: AnimationType; 'animationDuration'?: number; 'app-plus'?: AppPlus; 'h5'?: H5; 'mp-alipay'?: MpAlipay; 'mp-weixin'?: MpWeixin; 'mp-baidu'?: MpBaidu; 'mp-toutiao'?: MpToutiao; 'mp-lark'?: MpLark; 'mp-qq'?: MpQq; 'mp-kuaishou'?: MpKuaishou; 'mp-jd'?: MpJd; 'usingComponents'?: Record; 'renderingMode'?: string; 'leftWindow'?: boolean; 'topWindow'?: boolean; 'rightWindow'?: boolean; 'rpxCalcMaxDeviceWidth'?: number; 'rpxCalcBaseDeviceWidth'?: number; 'rpxCalcIncludeWidth'?: number; 'dynamicRpx'?: boolean; 'maxWidth'?: number; [x: string]: any; } interface RouteLocationNormalized { path: string; name?: string; params: RouteParams; query: LocationQuery; hash: string; fullPath: string; meta: RouteMeta; style?: GlobalStyle; redirectedFrom?: RouteLocationNormalized; [x: string]: any; } type RouteLocationRaw = string | { path?: string; name?: string; params?: RouteParams; query?: LocationQuery; hash?: string; replace?: boolean; navType?: NavType; animationType?: string; animationDuration?: number; }; interface RouterOptions { routes: RouteRecordRaw[]; } type NavigationGuardNext = (to?: RouteLocationRaw | false | true | void) => void; type NavigationGuard = (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => Promise | void | RouteLocationRaw | false | boolean; type NavigationHookAfter = (to: RouteLocationNormalized, from: RouteLocationNormalized) => void; type NavType = 'push' | 'replace' | 'replaceAll' | 'pushTab' | 'back'; type RouteBackRaw = number | RouteBackLocation; interface Router { readonly currentRoute: Ref; readonly routes: RouteRecordRaw[]; push: (to: RouteLocationRaw) => Promise; replace: (to: RouteLocationRaw) => Promise; replaceAll: (to: RouteLocationRaw) => Promise; pushTab: (to: RouteLocationRaw) => Promise; back: (back?: RouteBackRaw) => void; beforeEach: (guard: NavigationGuard) => () => void; afterEach: (guard: NavigationHookAfter) => () => void; install: (app: App) => void; } declare const START_LOCATION_NORMALIZED: RouteLocationNormalized; //#endregion //#region src/router.d.ts declare function createRouter(options: RouterOptions): Router; //#endregion //#region src/index.d.ts declare function useRouter(): Router; declare function useRoute(): RouteLocationNormalized; //#endregion export { AnimationType, GlobalStyle, HEXColor, LocationQuery, NavType, NavigationGuard, NavigationGuardNext, NavigationHookAfter, PercentageSize, PxSize, RGBAColor, RouteBackLocation, RouteBackRaw, RouteLocationBase, RouteLocationNormalized, RouteLocationRaw, RouteMeta, RouteParams, RouteRecordRaw, Router, RouterOptions, START_LOCATION_NORMALIZED, ThemeVar, createRouter, useRoute, useRouter };