import type { Context } from "hono"; import type { ProxyRoute, RouteMatch } from "../types"; export declare function sortRoutes(routes: ProxyRoute[]): ProxyRoute[]; /** * Match a configured host pattern against a request's `Host`. Supports * exact match and `*.example.com` wildcard prefix. */ export declare function matchesHost(pattern: string, host: string): boolean; export declare function matchesAnyHost(patterns: string[] | undefined, host: string): boolean; /** * Filter Hono middleware that 404s when the route's `match.headers` / * `match.query` / `match.hosts` predicates don't hold. Path and method * matching is done by Hono itself via `app.on(methods, path, ...)`. */ export declare function buildMatchFilter(match: RouteMatch): (c: Context, next: () => Promise) => Promise;