/** * Shared test-server helpers for HTTP client tests. * * Extracted from http-client.test.ts, http-client-redirect.test.ts, and * grafana-tools-redirect.test.ts to eliminate verbatim duplication (GEN-MAINT-02). */ import type { Server, IncomingMessage, ServerResponse } from 'node:http'; export type RequestHandler = (req: IncomingMessage, res: ServerResponse) => void; export declare function makeServer(handler: RequestHandler): Promise<{ server: Server; baseUrl: string; }>; export declare function closeServer(server: Server): Promise; export declare function readBody(req: IncomingMessage): Promise; //# sourceMappingURL=test-server.d.ts.map