/// import { AsyncLocalStorage } from "async_hooks"; import { HttpRouter } from "../../index.js"; import { ITestHttpContext } from "./contracts.js"; import { IHttpContext } from "../../http/context.js"; export declare function TestHttpRouter(router: HttpRouter): { asyncLocalStorage: AsyncLocalStorage; req(req: ITestHttpContext): { exec(): Promise; }; }; export interface ITestHttpRouteResponse { error: any; headers: Record; status: number; hasError(): boolean; body(): T; json(): T; getHeader(name: string): string | undefined; }