import type { Route, RouteMatch } from "../matchers/types.js"; export type { Route, RouteMatch }; /** Route entry with compiled regex and metadata */ export interface RouteEntry { regex: RegExp; route: Route; paramNames: string[]; isOptionalCatchAll: boolean; isCatchAll: boolean; } /** * API route matcher for matching URL paths to API route handlers. * Uses LRU caching for performance and self-contained regex compilation. * Suitable for API routes in /api/* and /app/api/* paths. */ export declare class ApiRouteMatcher { private _routes; private routeCache; constructor(); /** Public accessor for route entries */ get routes(): Map; addRoute(pattern: string, page: string): void; private normalizePathname; private sortRoutesByPriority; match(path: string): RouteMatch | null; private extractParams; listRoutes(): Route[]; clear(): void; clearCache(): void; destroy(): void; } //# sourceMappingURL=api-route-matcher.d.ts.map