import type { RouterOptions } from "../../types.js"; import { type PreparedPath } from "./normalize.js"; export type MatchState = { storeId: number; params: Record | null; routePath: string; }; export type LookupHandler = (storeId: number, params: Record | null, routePath: string) => void; export declare class TrieNode { readonly staticChildren: Map; paramChild: TrieNode | null; wildcardChild: TrieNode | null; storeId: number | null; routePath: string | null; paramNames: string[]; wildcardName: string | null; } export declare function matchNode(node: TrieNode, preparedPath: PreparedPath, offset: number, captures: string[], options: Required): MatchState | null; export declare function matchesNode(node: TrieNode, preparedPath: PreparedPath, offset: number, captures: string[], options: Required): boolean; export declare function lookupNode(node: TrieNode, preparedPath: PreparedPath, offset: number, captures: string[], captureCount: number, options: Required, onMatch: LookupHandler): boolean;