import { Route } from '../types/route'; /** * Attaches the chainable, immutable route methods — `addView` and `addLoader`. Each call rebuilds the * route's own (last) match and returns a new route with the methods re-attached, so neither mutates the * route it was called on, and chaining one never drops the other. */ export declare function withRouteMethods(route: TRoute): TRoute;