import { type HttpMethod, type RouteDefinition } from "./route-definition"; export interface RouteMatch { route: RouteDefinition; params: Record; query: Record; } /** * Method-aware radix-tree router. * Each HTTP method owns a separate tree for O(path segments) lookup. */ export declare class Router { private readonly trees; constructor(); clear(): void; private resetTrees; register(route: RouteDefinition): void; match(method: HttpMethod, url: string): RouteMatch | null; allowedMethods(url: string): HttpMethod[]; private createNode; private parseUrl; private normalizePath; private splitRoutePath; private splitRequestPath; private resolveInTree; }