///
import * as http from 'http';
import { HttpClientOptions, HttpClientRequest, HttpClientResponse, HttpProxyClientRequest, HttpServer, HttpServerOptions, HttpServerRequest, HttpServerResponse } from '../node-wrappers';
import { Writer } from '../writer';
export { HttpProxyClientRequest, HttpClientRequest, HttpClientResponse, HttpClientOptions, HttpServer, HttpServerRequest, HttpServerResponse, HttpServerOptions, };
export declare function server(listenr: (request: HttpServerRequest, response: HttpServerResponse) => void, options?: HttpServerOptions): HttpServer;
export declare function client(options?: HttpClientOptions): HttpClientRequest | HttpProxyClientRequest;
export interface HttpListenerOption {
}
export declare function listener(listenr: (request: HttpServerRequest, response: HttpServerResponse) => void, options?: HttpListenerOption): (request: http.IncomingMessage, response: http.ServerResponse) => Promise;
export declare type FactoryWriter = Writer & {
_result: any;
};
export declare function factory(url: string): {
reader(): any;
writer(): {
write(this: FactoryWriter, data: any): any;
readonly result: any;
};
};