import { Expression } from "../core/index.js"; import { Query, QueryInit } from "./query.js"; import { Router } from "./router.js"; /** * A router that is located at a specific path and navigates within that path. */ export declare class ChildRouter implements Router { #private; path: () => string; query: () => Query | undefined; /** * Create a new child router. * * @param parent The parent router. * @param mountPath The path this router is mounted at. * @param path An expression to get the normalized rest path. */ constructor(parent: Router, mountPath: string, path: Expression); get root(): Router; get parent(): Router | undefined; push(path: string, query?: QueryInit): void; replace(path: string, query?: QueryInit): void; } //# sourceMappingURL=child-router.d.ts.map