/** * Shared route-matching utilities for SSR route tables. * * The SSR route table is a flat list of `SsrRoute` objects, each with a * pre-known path and optional params. For static export we match exact paths; * for the edge adapter we match patterns the same way `matchPath` does in * `@jorvel/runtime`. */ import type { SsrRoute } from './types.js'; export type SsrRouteMatch = { path: string; params: Record; }; /** * Find the first route whose path pattern matches `pathname`. * * Supports: * - Exact paths (`/dashboard/settings`) * - Param segments (`/users/:id`) * - Splat (`/blog/*`) — must be terminal */ export declare function matchRoutePath(routes: SsrRoute[], pathname: string): SsrRouteMatch | null; //# sourceMappingURL=route-utils.d.ts.map