/** * Request like object */ export interface Request { headers: Record | NodeJS.Dict | Headers; } /** * Middleware next function */ export type NextFunction = () => void | Promise; /** * Context used by some frameworks such as Koa */ export type Context = { req: Request; } | { request: Request; }; /** * Server compatible middleware for Mocky Balboa compatible with major server frameworks including: * - Express * - Koa * - Fastify */ declare const mockyBalboaMiddleware: () => { (req: Request, _res: any, next: NextFunction): void | Promise; (ctx: Context, next: NextFunction): void | Promise; }; export default mockyBalboaMiddleware; //# sourceMappingURL=middleware.d.ts.map