import type { OpenAPIServer } from '@redocly/api-docs'; /** Regex for request pathnames of the OpenAPI `path` below the base path that `prefix` matches. */ export declare function pathPattern(prefix: string, path: string): RegExp | undefined; /** * Regex group matching any of the servers' base paths: required when every server has one, * optional when some server has none, `''` when none has one. */ export declare function basePathPrefix(servers: readonly OpenAPIServer[]): string; /** Number of `{variable}` segments in an OpenAPI path; fewer means a more specific path. */ export declare function pathVariableCount(path: string): number; /** * Identity of an OpenAPI path template for comparison: variable names and a trailing slash do not * change which requests the path matches, so `/users/{id}/` and `/users/{userId}` are equal. */ export declare function pathTemplateKey(path: string): string; /** The upper-case HTTP method sent for an OpenAPI operation key or a request method; `x-query` sends `QUERY`. */ export declare function operationHttpMethod(key: string): string; //# sourceMappingURL=route-pattern.d.ts.map