import type { RouteEntry } from './config.js'; export interface RouteMatch { route: RouteEntry; strippedPath: string; } /** * Sort routes by prefix length descending (longest first) for longest-prefix-match. */ export declare function sortRoutes(routes: RouteEntry[]): RouteEntry[]; /** * Resolve a request path against pre-sorted routes using longest-prefix-match. * Returns the matched route and the path with the prefix stripped, or null. */ export declare function resolveRoute(path: string, routes: RouteEntry[]): RouteMatch | null; /** * Check if a target string is a Unix socket URI. */ export declare function isUnixSocket(target: string): boolean; /** * Extract the socket path from a unix:// target URI. */ export declare function parseUnixTarget(target: string): string; //# sourceMappingURL=dispatcher.d.ts.map