export default function (dir: any, opts?: {}): (req: any, res: any, next: any) => any;
