import type { MatchResult } from "../../types.js"; import type { RouteDefinition } from "./ir.js"; import type { LookupHandler } from "./trie.js"; export type CompiledMethodRuntime = { find: (rawPath: string, matchPath: string) => MatchResult | null; lookup: (rawPath: string, matchPath: string, onMatch: LookupHandler) => boolean; matches: (rawPath: string, matchPath: string) => boolean; meta: { staticRouteCount: number; dynamicRouteCount: number; sourceLength: number; }; }; export type CompiledRouterRuntime = { methods: Map; anyMethod: CompiledMethodRuntime | null; meta: { compileDurationMs: number; }; }; export declare function compileRouterRuntime(routes: RouteDefinition[], maxParamLength: number): CompiledRouterRuntime;