///
///
import * as http from 'http';
import supertest = require('supertest');
export { supertest };
export declare type Client = supertest.SuperTest;
/**
* Create a SuperTest client connected to an HTTP server listening
* on an ephemeral port and calling `handler` to handle incoming requests.
* @param handler
*/
export declare function createClientForHandler(handler: (req: http.ServerRequest, res: http.ServerResponse) => void): Client;
export interface Server {
config: {
port: number;
};
start(): Promise;
}
export declare function createClientForServer(server: Server): Promise;