import type { Result } from '../../router'; import type { Pattern } from '../../utils/url'; declare type HandlerSet = { handler: T; score: number; name: string; }; export declare class Node { methods: Record>[]; children: Record>; patterns: Pattern[]; order: number; name: string; handlerSetCache: Record[]>; constructor(method?: string, handler?: T, children?: Record>); insert(method: string, path: string, handler: T): Node; private getHandlerSets; search(method: string, path: string): Result | null; } export {};