///
import { ServerOptions as HttpsServerOptions } from 'https';
export declare type ConfigRetval = T & {
host: string;
port: number;
} & HttpsServerOptions;
/**
* Create an HTTP-server configuration that works well in test environments.
* - Ask the operating system to assign a free (ephemeral) port.
* - Use IPv4 localhost `127.0.0.1` to avoid known IPv6 issues in Docker-based
* environments like Travis-CI.
* - Provide default TLS key & cert when `protocol` is set to `https`.
*
* @param customConfig - Additional configuration options to apply.
*/
export declare function givenHttpServerConfig(customConfig?: T & {
protocol?: string;
}): ConfigRetval;