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