/** * Route enumeration for Express 4 apps and routers. * Walks the layer stack so tests can compare the routes a service really * serves with the routes its OpenAPI description documents. */ import type express from 'express'; export type RouteKey = { method: string; path: string; }; /** `:name` -> `{name}`, `\:` -> `:`, trailing slash removed (except `/`). */ export declare const toOpenApiPath: (expressPath: string) => string; /** All routes served by an app or router, in OpenAPI path form, de-duplicated and sorted. */ export declare const listExpressRoutes: (appOrRouter: express.Express | express.Router, prefix?: string) => RouteKey[];