import * as express from 'express'; import * as cors from 'cors'; import * as bodyParser from 'body-parser'; export declare const Router: typeof express.Router; export { staticRoutes } from './middleware/staticRoutes'; export declare type Request = express.Request; export declare type Response = express.Response; export declare function sendError(code: number, res: express.Response, err: Error): void; export declare function app(options?: { cors?: cors.CorsOptions; json?: bodyParser.OptionsJson; static?: string; }): import("express-serve-static-core").Express; export declare function router(): express.Router; export declare function routes(router: express.Router): RouteInfo[]; export declare type RouteInfo = { path: string; methods: Array<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'>; }; export declare function logStarted(port: number, args?: {}): void;