import { Endpoint } from "../definitions"; /** * Returns whether a given request should associated with an endpoint, as in the path and method match. * * @param req The incoming request. * @param pathPrefix The path prefix on which the API should be served (e.g. /api/v2). * @param endpoint The endpoint to match against. */ export declare function isRequestForEndpoint(req: { method: string; path: string; }, pathPrefix: string, endpoint: Endpoint): boolean; /** * Normalises a given HTTP request path, by replacing all instances of two or more "/" in a row with a singular "/". * * @param path The path to normalise */ export declare function normalisePath(path: string): string;