/** * Pattern Matching Engine * * Handles matching of hostnames and paths against various patterns: * - `.` or `*` - any apex domain * - `**` - any domain (apex + subdomains) * - `*.` - any single-level subdomain * - `**.` - any multi-level subdomain * - `example.com` - exact domain * - `*.com` - any apex .com domain * - `*.example.com` - subdomain of example.com * - `**.example.com` - any depth subdomain * - `admin.*` - admin subdomain of any apex * - `example.com/admin` - specific domain with path prefix */ /** * Normalize a pattern by removing trailing slashes from paths */ export declare function normalizePattern(pattern: string): string; /** * Parse hostname and path from request URL */ export declare function parseRequest(request: Request): { hostname: string; pathname: string; parts: string[]; }; /** * Match a single pattern against hostname and path */ export declare function matchPattern(pattern: string, hostname: string, pathname: string, parts: string[]): boolean; /** * Validate pattern format */ export declare function validatePattern(pattern: string): void; //# sourceMappingURL=pattern-matcher.d.ts.map