import type { MatchResult } from "../../types.js"; import type { LookupHandler } from "./trie.js"; import type { RouteDefinition } from "./ir.js"; export type DynamicFindFn = (rawPath: string, matchPath: string) => MatchResult | null; export type DynamicLookupFn = (rawPath: string, matchPath: string, onMatch: LookupHandler) => boolean; export type DynamicCodegenResult = { find: DynamicFindFn; lookup: DynamicLookupFn; sourceLength: number; }; export declare function compileDynamicMatcher(routes: RouteDefinition[], maxParamLength: number): DynamicCodegenResult;