import type { IncomingMessage, ServerResponse } from "node:http"; export type RouteBody = Record; export type RouteInvocationResult = { handled: boolean; status: number; payload: TPayload; }; export type RouteInvokeArgs = { method: string; pathname: string; url?: string; body?: TBody | null; runtimeOverride?: TRuntime; headers?: { host?: string; }; }; export type RouteRequestContext = { req: IncomingMessage; res: ServerResponse; method: string; pathname: string; runtime: TRuntime; readJsonBody: () => Promise; json: (_res: ServerResponse, data: unknown, status?: number) => void; error: (_res: ServerResponse, message: string, status?: number) => void; }; type RouteInvokerOptions = { runtime: TRuntime; runtimeProvider?: undefined; } | { runtime?: undefined; runtimeProvider: () => TRuntime; }; export declare function createRouteInvoker(handler: (ctx: RouteRequestContext) => Promise, options: RouteInvokerOptions): (args: RouteInvokeArgs) => Promise>; export {}; //# sourceMappingURL=route-test-helpers.d.ts.map