/**
 * TanStack Router — the path is a literal, and so is the destination.
 *
 * Routes are declared two ways, and this reads both:
 *
 *   // file-based (the plugin's default): the full path is the argument
 *   export const Route = createFileRoute('/dashboard/invoices/$invoiceId')({
 *     component: InvoiceComponent,
 *   })
 *
 *   // code-based: a path per route, composed through its parent
 *   const postsRoute = createRoute({ getParentRoute: () => rootRoute, path: 'posts' })
 *   const postRoute  = createRoute({ getParentRoute: () => postsRoute, path: '$postId' })
 *
 * Three things are TanStack's own, and each one decides whether the picture is
 * right:
 *
 * 1. **A parameter is `$id`, not `:id`.** Route names are normalised to the
 *    `:id` every other framework here uses, so one matcher serves them all.
 * 2. **`to` is the route PATTERN, not a filled URL.** `<Link to="/posts/$postId"
 *    params={{ postId }}>` names the route and passes the values beside it —
 *    where React Router would write `/posts/5`. So a destination is normalised
 *    the same way a route name is, and then matches it exactly.
 * 3. **A destination is an object.** `navigate({ to: '/' })`,
 *    `throw redirect({ to: '/login' })` — the path is under a `to` key, and a
 *    `navigate({ search: … })` with no `to` stays on the page it is on.
 *
 * Not every route file is a page. A segment written `_auth` is a pathless
 * layout — it does not appear in the URL, and the file that declares it renders
 * an outlet rather than a screen; a `(group)` segment is likewise invisible; a
 * `dashboard.route.tsx` is the layout for the `/dashboard` subtree while
 * `dashboard.index.tsx` — whose literal carries a trailing slash — is the page
 * AT `/dashboard`. Drawing both would put one address on the map twice.
 *
 * Left unresolved rather than guessed: a computed `to`, a path no route serves,
 * and a code-based route whose parent is declared in another file (the chain is
 * composed within a file, which is where a route tree is written).
 */
import type { FrameworkResolver, ResolutionContext } from '../types';
import { type HrefLiteral, type RootedRouteTable } from './expo-router';
/**
 * A TanStack path in the form every other framework's routes take.
 *
 * `$invoiceId` is `:invoiceId` and a bare `$` is a splat; a `_auth` segment is
 * a pathless layout and a `(group)` segment is a route group, neither of which
 * appears in the URL; a trailing `_` un-nests without changing the segment.
 * Returns null for a path that names no address at all.
 */
export declare function tanstackPath(raw: string): string | null;
export interface TanstackRouteEntry {
    /** `/dashboard/invoices/:invoiceId` — normalised the way the table wants it. */
    path: string;
    /** The component the route renders, when it names one. */
    component: string | null;
    /** True for the index route AT an address, which outranks the layout that wraps it. */
    index: boolean;
    /** True when the route came from `createFileRoute` — one route per file, so the file's own shape describes it. */
    fileBased: boolean;
    line: number;
}
/**
 * Every route a file declares, file-based and code-based alike.
 *
 * A code-based route's own `path` is a fragment (`posts`, `$postId`, `/`), so
 * the chain of `getParentRoute: () => parent` is followed to compose the full
 * address — within the file, which is where a route tree is written. A route
 * that is another route's parent is the layout for that subtree, and the
 * address belongs to the index route under it.
 */
export declare function parseTanstackRoutes(content: string): TanstackRouteEntry[];
export type TanstackTable = RootedRouteTable;
export declare function tanstackTable(context: ResolutionContext): TanstackTable;
/** The verb a navigation call name stands for, or null. */
export declare function tanstackNavVerb(name: string): string | null;
/**
 * The destination in a TanStack navigation: `{ to: '/posts/$postId' }`.
 *
 * `to` is the route pattern, so it is normalised exactly as a route name is
 * and then names that route. A `navigate({ search: … })` with no `to` is a
 * change of search parameters on the page the user is already on.
 */
export declare function tanstackDestination(expr: string): HrefLiteral | null;
export declare const tanstackRouterResolver: FrameworkResolver;
//# sourceMappingURL=tanstack-router.d.ts.map