import type { Ref } from 'vue'; interface Route { /** Percentage encoded pathname section of the URL. */ path: string; /** The whole location including the `search` and `hash`. */ fullPath: string; /** Object representation of the `search` property of the current location. */ query: Record; /** Hash of the current location. If present, starts with a `#`. */ hash: string; /** Name of the matched record */ name: string | null | undefined; /** Object of decoded params extracted from the `path`. */ params: Record; /** * The location we were initially trying to access before ending up * on the current location. */ redirectedFrom: Route | undefined; /** Merged `meta` properties from all of the matched route records. */ meta: Record; /** compatibility type for vue-router */ matched: never[]; } type RouteGuardReturn = void | Error | string | boolean; interface RouterHooks { 'resolve:before': (to: Route, from: Route) => RouteGuardReturn | Promise; 'navigate:before': (to: Route, from: Route) => RouteGuardReturn | Promise; 'navigate:after': (to: Route, from: Route) => void | Promise; 'error': (err: any) => void | Promise; } interface Router { currentRoute: Ref; isReady: () => Promise; options: Record; install: () => Promise; push: (url: string) => Promise; replace: (url: string) => Promise; back: () => void; go: (delta: number) => void; forward: () => void; beforeResolve: (guard: RouterHooks['resolve:before']) => () => void; beforeEach: (guard: RouterHooks['navigate:before']) => () => void; afterEach: (guard: RouterHooks['navigate:after']) => () => void; onError: (handler: RouterHooks['error']) => () => void; resolve: (url: string | Partial) => Route; addRoute: (parentName: string, route: Route) => void; getRoutes: () => any[]; hasRoute: (name: string) => boolean; removeRoute: (name: string) => void; } declare const _default: import("../nuxt.js").Plugin<{ route: Route; router: Router; }> & import("../nuxt.js").ObjectPlugin<{ route: Route; router: Router; }>; export default _default;