import { Route } from "./Route"; import { RouteMatcher } from "./RouteMatcher"; import { RouteWithParent } from "./RouteWithParent"; export declare class RoutingTable { /** * @type {Array} */ protected routes: Route[]; /** * @type {Array} */ protected routeMatches: RouteMatcher[]; /** * @type {{}} */ protected routesByName: { [name: string]: number; }; /** * @type {{}} */ protected routesByPath: { [name: string]: number; }; /** * @param route * @param parentName * @param parentPath * @param directParent * @return {RoutingTable} */ insert(route: Route, parentName?: string, parentPath?: string, directParent?: RouteWithParent): this; /** * @param state * @return {number|boolean} */ findByName(state: string): RouteMatcher | false; /** * @param path * @return {any} */ match(path: string): [RouteMatcher, Object] | false; }