/**
 * Vue Router — routes declared in a config object, navigation often by NAME.
 *
 * `frameworks/vue.ts` reads Nuxt's file convention (`pages/about.vue` is
 * `/about`), which is half the Vue world. The other half — every plain Vue 3
 * app — declares its routes in one object:
 *
 *   const router = createRouter({
 *     history: createWebHistory(),
 *     routes: [
 *       { name: 'login',   path: '/login',             component: () => import('@/views/Login') },
 *       { name: 'profile', path: '/profile/:username', component: Profile },
 *     ],
 *   })
 *
 * `extract()` reads that array into one `route` node per entry, named by its
 * path the way every other framework's routes are, bound to the component it
 * names — an identifier, or the last segment of a lazy `() => import(…)`,
 * which is the `.vue` file's own name.
 *
 * **Navigation is usually a name, not a path.** This is what makes Vue
 * different from React Router and Next.js, where the destination is always a
 * URL:
 *
 *   router.push({ name: 'login' })        // by name — the common idiom
 *   router.push('/')                      // by path
 *   router.push({ path: '/', query })     // by path, with extras
 *   navigateTo('/dashboard')              // Nuxt
 *
 * So `resolve()` reads the argument as a name FIRST and falls back to the
 * path readers every other framework shares. A route's name lives only in the
 * source — node metadata is not persisted — so the table re-reads the config
 * files its own route nodes came from, with the same parser `extract` used.
 * `<router-link to>` / `<RouterLink to>` / `<NuxtLink to>` are markup rather
 * than calls, so a synthesizer reads them (`vue-router-synthesizer.ts`).
 *
 * Left unresolved rather than guessed: a computed destination
 * (`router.push(postAuthRoute.value)`), a name or path nothing declares, and
 * a nested `children:` route, whose path is relative to its parent.
 */
import type { Node } from '../../types';
import type { FrameworkResolver, ResolutionContext } from '../types';
import { type HrefLiteral, type RootedRouteTable, type RouteTable } from './expo-router';
export interface VueRouteEntry {
    /** `/profile/:username` — the full path, a child's joined onto its parents'. */
    path: string;
    /** `profile` — what `router.push({ name })` names, when the entry has one. */
    name: string | null;
    /** The component the entry names, by identifier or by the tail of its lazy import. */
    component: string | null;
    /** `@/views/dashboard/index` — the file a lazy `() => import(…)` component names. */
    spec: string | null;
    /** The components of the parent routes it renders inside, outermost first. */
    layouts: VueLayout[];
    line: number;
}
export interface VueLayout {
    component: string;
    spec: string | null;
}
/**
 * Every route a file's routes tables declare.
 *
 * The tables are walked, not pattern-matched: a `name` is written ABOVE the
 * `path` it belongs to, so reading fields out of a window around each `path`
 * hands an entry its PREDECESSOR's name — vue-realworld's `login` came out as
 * `/register`, silently, for every route in the file. So each `{…}` is
 * matched as a unit and only its own depth-1 fields are read; a `meta: {…}`
 * and a lazy `component: () => import(…)` are stepped over rather than
 * searched, and `children` are walked in turn with the parent's path in front
 * of theirs.
 *
 * A route with children is a layout: its component renders the outlet they
 * fill. It is a screen of its own only when no child claims its address and
 * it does not `redirect` elsewhere — vue-element-admin's `{ path: '/table',
 * component: Layout, redirect: '/table/complex-table', children }` is the
 * frame around four tables, not a fifth page.
 *
 * A top-level entry whose path does not start with `/` (`*`, a catch-all) is
 * not an address. A table is read from a file that builds a router, imports
 * `vue-router`, or lives in a `router/` directory.
 */
export declare function parseVueRoutes(content: string, filePath?: string): VueRouteEntry[];
/** One app's routes, by path and — Vue's own idiom — by name. */
export interface VueAppRoutes extends RouteTable {
    /** `login` → the route node, for `router.push({ name: 'login' })`. */
    byName: Map<string, Node>;
}
export type VueRouteTable = RootedRouteTable<VueAppRoutes>;
export declare function vueRouteTable(context: ResolutionContext): VueRouteTable;
/** The verb a navigation call name stands for, or null. */
export declare function vueNavVerb(name: string): string | null;
/** The route name in a `{ name: 'login' }` destination, or null for anything else. */
export declare function routeNameInExpression(expr: string): string | null;
/** `{ path: '/', query }` — Vue's object destination, whose key is `path`, not `pathname`. */
export declare function parseVuePathObject(expr: string): HrefLiteral | null;
export declare const vueRouterResolver: FrameworkResolver;
//# sourceMappingURL=vue-router.d.ts.map