import type { ViteDevServer } from 'vite'; import type * as R from './route.js'; type Parameters_ = Record; type MatchedRoute = { match: URLPatternResult | undefined; foundRoute: R.Route; params: Parameters_; pathname: string; }; export type TrailingSlashRedirect = { redirect: string; }; /** @internal Exported for unit testing. */ export declare function matchRouteFromUrl(url: string, routes: R.RoutesManifest, trailingSlash?: 'always' | 'never' | 'ignore'): MatchedRoute | TrailingSlashRedirect | null; type ExtractedStaticPaths = { staticPaths: R.StaticPathOptionsGeneric[]; props: unknown; } | null; /** * @param options * @param options.routeModule * @param options.foundRoute * @param options.params * @param options.pathname */ /** @internal Exported for unit testing. */ export declare function extractStaticPaths(options: { routeModule: R.RouteModule; foundRoute: R.Route; params: Parameters_; pathname: string; }): Promise; export type RouteInfos = { params: Parameters_; props: unknown; routeModule: Readonly; foundRoute: R.Route; pathname: string; }; export declare function getRoute(options: { url: string; vite?: ViteDevServer | undefined; routes: R.RoutesManifest; routeImports?: R.RoutesImports | undefined; trailingSlash?: 'always' | 'never' | 'ignore'; }): Promise; export {}; //# sourceMappingURL=match.d.ts.map