UNPKG

527 BTypeScriptView Raw
1import { RestRouterOptions } from './rest-router';
2import { ResolvedRoute, RouteEntry } from './route-entry';
3import { BaseRouter } from './router-base';
4/**
5 * Router implementation based on trie
6 */
7export declare class TrieRouter extends BaseRouter {
8 private trie;
9 constructor(options?: RestRouterOptions);
10 protected addRouteWithPathVars(route: RouteEntry): void;
11 protected findRouteWithPathVars(verb: string, path: string): ResolvedRoute | undefined;
12 protected listRoutesWithPathVars(): RouteEntry[];
13}