import { Middleware } from "koa"; import { Environment } from "../Environment"; export interface IMiddleware { name: string; rank: number; func: Middleware; apply: () => void; } export declare type MiddlewareFactory = (env: Environment) => IMiddleware; export declare function applyMiddlewares(env: Environment): Promise; export declare function loadMiddlewares(appRootPath: string): Promise>;