import { Route, RouteInternal, Routes } from '../types/route'; import { RouterPlugin } from '../types/routerPlugin'; import { BuiltInRejectionType, Rejection, RejectionInternal } from '../types/rejection'; import { RouterOptions } from '../types/router'; /** * Takes in routes and plugins and returns a list of routes with the base route inserted if provided. * Also checks for duplicate names in the routes. * * @throws {DuplicateNamesError} If there are duplicate names in the routes. */ export declare function getRoutesForRouter(routes: Routes | Routes[], plugins?: RouterPlugin[], options?: RouterOptions): { routes: (import('../main').Url & { id: string; matches: import('../types/route').CreatedRouteOptions[]; name: string; meta: Record; state: Record; prefetch?: import('../main').PrefetchConfig; context: import('../types/routeContext').RouteContext[]; } & RouteInternal)[]; rejections: (Rejection & RejectionInternal)[]; getRouteByName: (type: string) => Route | undefined; getRejectionByType: { (type: BuiltInRejectionType): (Rejection & RejectionInternal); (type: string): (Rejection & RejectionInternal) | undefined; }; };