///
import * as pulumi from "@pulumi/pulumi";
import * as http from "http";
export declare type RequestListenerFactory = () => (req: http.IncomingMessage, res: http.ServerResponse) => void;
export interface HttpServerConstructor {
/**
* @param createRequestListener Function that, when called, will produce the [[requestListener]]
* function that will be called for each http request to the server. The function will be
* called once when the module is loaded. As such, it is a suitable place for expensive
* computation (like setting up a set of routes). The function returned can then utilize the
* results of that computation.
*/
new (name: string, createRequestListener: RequestListenerFactory, opts?: pulumi.ResourceOptions): HttpServer;
}
export declare let HttpServer: HttpServerConstructor;
/**
* An HttpServer is used to listen and respond to http requests made to the exported [[url]].
* HttpServers can be constructed passing in a Function that with the same signature as the
* [[requestListener]] parameter in [[http.createServer]]. See:
* https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener for more details.
*/
export interface HttpServer {
readonly url: pulumi.Output;
}