import { RedirectRule, RewriteRule } from '../app/index'; export interface RouteMatch { type: "rewrite" | "redirect" | "api" | "gql" | "file-upload"; target?: string; statusCode?: number; params?: Record; } /** * Match URL path against routing rules * * @param pathname - The URL pathname to match * @param basePath - Optional base path of Salesforce server * @param rewrites - Optional array of rewrite rules * @param redirects - Optional array of redirect rules * @returns Route match result indicating the type and target, or null if no match */ export declare function matchRoute(pathname: string, basePath?: string, rewrites?: RewriteRule[], redirects?: RedirectRule[]): RouteMatch | null; /** * Check if a path matches any of the given glob patterns * Supports glob wildcards: * (matches anything except /), ** (matches anything including /), ? (single character) * * @param path - The path to test * @param patterns - Array of glob patterns to match against * @returns True if the path matches any pattern, false otherwise */ export declare function matchesPattern(path: string, patterns: string[] | undefined): boolean; /** * Apply trailing slash rules to pathname * * @param pathname - The URL pathname * @param trailingSlash - Trailing slash handling strategy * @returns Modified pathname with trailing slash applied according to rules */ export declare function applyTrailingSlash(pathname: string, trailingSlash?: "always" | "never" | "auto"): string; //# sourceMappingURL=routing.d.ts.map