import * as express from "express"; type PathParams = string | RegExp | (string | RegExp)[]; export declare const HttpMethod: { DELETE: string; GET: string; PATCH: string; POST: string; PUT: string; }; /** * The Endpoint class allows us to define types of endpoints with specific middlewares. For * example: * * export class AuthenticatedEndpoint extends Endpoint { * constructor() { * super(); * this.addMiddleware(authenticationCheckMiddleware); * } * } * * export class SpecificEndpoint extends AuthenticatedEndpoint { * handler(req, res, next) { * ... * } * } */ export declare class Endpoint { middlewares: express.Handler[]; addMiddleware(middleware: express.Handler): void; addMiddlewareAtStart(middleware: express.Handler): void; handler(_req: express.Request, _res: express.Response, _next: express.NextFunction): Promise; install(router: express.IRouter, httpMethod: string, path: PathParams): void; } export {};