import { RouteParams } from './lib/get-route-matcher-func.js'; import './lib/route-regex.js'; /** * This is the getRouteMatcher function from NextJS- it's got a bit of an ugly * signature, so I use a different signature in the README and as the default * export for this module **/ declare const getRouteMatcherUgly: (routeMapping: { [route: string]: Function; }) => (incomingPath: string) => { serverFunc: Function; match: RouteParams; fsPath: string; } | null; declare type RouteMatcherOutput = { matchedRoute: string; routeParams: RouteParams; }; declare type RouteMatcher = (incomingPath: string) => RouteMatcherOutput | null; declare const getRouteMatcher: (routes: string[]) => RouteMatcher; export { RouteMatcher, RouteMatcherOutput, getRouteMatcher as default, getRouteMatcher, getRouteMatcherUgly };