disabled
  K   ˆl–Ãa¾”ªi?u8 ¸Ûw
˜´o�þB	YÇÌq¶Ìqµ ¿ŸÃƒi�?È_“I|¥ŽõHºl=$¤�zTÖ™	ÇÆ Õ    /**
 * Next.js â€” file-based pages and route handlers, and string-keyed navigation.
 *
 * Two things static extraction cannot see on its own, and that together are
 * most of what "how does the site flow" means in a Next app:
 *
 * 1. **A page is a file.** `app/users/page.tsx` is `/users`, `app/(marketing)/
 *    about/page.tsx` is `/about` (a `(group)` is invisible in the URL),
 *    `app/blog/[slug]/page.tsx` is `/blog/:slug`, `app/docs/[...all]/page.tsx`
 *    is `/docs/:all*`; the Pages Router's `pages/about.tsx` is `/about`.
 *    `extract()` emits one `route` node per page, named by its path, with a
 *    `calls` ref to the file's default export so the route reaches the
 *    component that renders it â€” exactly as Expo Router's screens do.
 *    `app/api/users/route.ts` exports `GET` / `POST` / â€¦ â€” one route node per
 *    method, `POST /api/users`, with a `references` ref to that function, as
 *    every server resolver names a handler; `pages/api/users.ts` is
 *    `ANY /api/users` bound to its default export.
 *
 * 2. **Navigation is a string.** `router.push('/users')` (`next/navigation`,
 *    `next/router`), `redirect('/login')` / `permanentRedirect` in a server
 *    action or a page, `NextResponse.redirect(new URL('/login', req.url))` in
 *    the middleware or a route handler: the extractor records each as a call
 *    that resolves to nothing, because the target is a path. `resolve()`
 *    claims those refs, reads the argument off the source (the Expo Router
 *    readers â€” a string, a template with holes, a `{ pathname }` object, a
 *    conditional whose arms agree, a local `const href = â€¦`), matches it
 *    against this framework's own route table, and returns a **`navigates`**
 *    edge carrying the href. `<Link href="/x">` and an internal `<a href>` are
 *    JSX attributes, not calls, so a synthesizer (`next-router-synthesizer.ts`)
 *    reads them from the source instead.
 *
 * Precision rests on the string resolving to a real page: a computed href, a
 * path no page serves, a relative href, or a conditional that forks are left
 * unresolved rather than guessed. Parallel (`@slot`) and intercepting
 * (`(.)photo`) routes are not modelled; `layout` / `loading` / `error` /
 * `template` files are not routes.
 */
import type { Node } from '../../types';
import type { FrameworkResolver, ResolutionContext } from '../types';
import { type HrefLiteral, type RouteTable } from './expo-router';
export interface NextRouteFile {
    /** A page component, an App Router `route.ts` handler file, or a Pages Router API file. */
    kind: 'page' | 'handler' | 'api';
    /** `/blog/:slug` â€” the path, in the form every other framework's routes use. */
    path: string;
    /** The directory the Next app lives in (`''`, `apps/web/`) â€” what its navigation calls are gated on. */
    root: string;
}
/** What a file is to the router, or null for a file that is not a route. */
export declare function nextRouteForFile(filePath: string): NextRouteFile | null;
interface NextTable extends RouteTable {
    /** The directories Next apps live in â€” a navigation call is only read from under one. */
    roots: string[];
}
export declare function nextRouteTable(context: ResolutionContext): NextTable;
/** A route a destination names, with the arm that named it â€” so each edge says the path it took. */
export interface HrefDestination {
    node: Node;
    /** The arm of the expression this route came from; its `display` is the edge's href. */
    href: HrefLiteral;
}
/**
 * Every route a destination names â€” one per arm of a conditional, deduped.
 *
 * Each carries its OWN arm, because an edge that says
 * `/search/${â€¦}/page/${â€¦}` while pointing at `/admin/productlist/:pageNumber`
 * names a path it did not take.
 */
export declare function destinationsForHref(href: HrefLiteral, table: RouteTable): HrefDestination[];
/** The single route an href names, or null when it names none. The first arm wins a fork. */
ex