import type { History } from 'history'; import type { PathFunction } from 'path-to-regexp'; import type { AnyIfEmpty, BuildPathArgs, DefaultRoutePojo, NamedPaths } from './types.js'; export interface ControllerProps { history: History; namedPaths: Paths; routes: readonly Route[]; notFound: AnyIfEmpty; } export default class RouteController { private cachedMatches; private normalizedRouter; readonly history: History; readonly notFound: AnyIfEmpty; readonly pathBuilders: Record>; constructor({ history, namedPaths, routes, notFound, }: ControllerProps); getMatchedRoutes(pathToMatch: string): (Route & object)[]; buildPath(pathOrPathName: N, ...[pathData]: BuildPathArgs): string; } //# sourceMappingURL=Controller.d.ts.map