import type { Router, Result } from '../../router'; interface Hint { components: string[]; regExpComponents: Array; componentsLength: number; endWithWildcard: boolean; paramIndexList: number[]; maybeHandler: boolean; namedParams: [number, string, string][]; } interface HandlerWithSortIndex { handler: T; index: number; } interface Route { method: string; path: string; hint: Hint; handlers: HandlerWithSortIndex[]; middleware: HandlerWithSortIndex[]; paramAliasMap: Record; } export declare class RegExpRouter implements Router { routeData?: { index: number; routes: Route[]; methods: Set; }; add(method: string, path: string, handler: T): void; match(method: string, path: string): Result | null; private buildAllMatchers; private buildMatcher; } export {};