/// import http from 'http'; declare type MockableServer = http.Server & { nextResponseHandler?: MockHandler; }; declare type MockHandler = (res: http.ServerResponse) => any; export default class TestServer { server: MockableServer; hostname: string; constructor(hostname?: string); start(): Promise; stop(): Promise; get port(): string; mockResponse(responseHandler: MockHandler): string; router(this: MockableServer, request: http.IncomingMessage, res: http.ServerResponse): void; } export {};