import {Application, Response, Request, NextFunction} from 'express';

interface Config{
  acl?: boolean,
  exclude?: string [],
  loginUrl: string,
  infoUrl: string
}

function mid(req: Request, res: Response, next: NextFunction): void

function middleware(app: Application, config: Config): mid;

export = middleware;
