import { Router, Request, Response, NextFunction } from 'express'; export type Wrapper = (router: Router) => void; export type Handler = (req: Request, res: Response, next: NextFunction) => Promise | void; export type Route = { path: string; method: string; handler: Handler | Handler[]; }; export type StartServer = { port: number; routes: Route[]; customizablesMiddlewares?: Wrapper[]; metricsPort?: number; applyCommonsMiddlewares?: boolean; applyCommonsErrors?: boolean; };