import { NextFunction, Request, Response } from "express"; import { MiddlewareConfig } from "./types"; /** * Modules passed into middleware are then pushed into sharify, under `stitch`, * for rehydration on the client. */ export declare function middleware({ modules, wrapper }: MiddlewareConfig): (_req: Request, res: Response, next: NextFunction) => void;