import type { NextFunction, Request, Response, Router } from 'express'; import request from 'supertest'; import type { Middleware } from './index.js'; type TestMiddlewareParameters = { middleware: Middleware; url?: string; test: ({ response, request, next, }: { response: Response; request: Request; next: NextFunction; }) => Promise; }; export declare const testMiddleware: ({ middleware, url, test }: TestMiddlewareParameters) => Promise; export declare const testRouter: (router: Router) => request.SuperTest; export {};