/** * Copyright © 2023 650 Industries. * Copyright © 2023 Vercel, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * Based on https://github.com/vercel/next.js/blob/1df2686bc9964f1a86c444701fa5cbf178669833/packages/next/src/shared/lib/router/utils/route-regex.ts */ import type { RouteNode } from './Route'; export type ExpoRouterServerManifestV1Route = { file: string; page: string; routeKeys: Record; namedRegex: TRegex; generated?: boolean; }; export type ExpoRouterServerManifestV1 = { apiRoutes: ExpoRouterServerManifestV1Route[]; htmlRoutes: ExpoRouterServerManifestV1Route[]; notFoundRoutes: ExpoRouterServerManifestV1Route[]; }; export interface Group { pos: number; repeat: boolean; optional: boolean; } export interface RouteRegex { groups: Record; re: RegExp; } export declare function getServerManifest(route: RouteNode): ExpoRouterServerManifestV1; export declare function parseParameter(param: string): { name: string; repeat: boolean; optional: boolean; }; //# sourceMappingURL=getServerManifest.d.ts.map