import { Request, Response, NextFunction } from "express"; export default function middleware(htmlTpl: string, mainModule: { default: (path: string) => Promise<{ ssrInitStoreKey: string; data: any; html: string; }>; }, proxyMap?: { [key: string]: any; } | Array<{ context: string[] | string; }> | Function): (req: Request, res: Response, next: NextFunction) => void;