/**
* @module Internal
*/
///
import stream = require('stream');
import express = require("express");
export declare const DEFAULT_STANDALONE_PORT = 45456;
export declare enum Method {
GET = 0,
POST = 1,
PUT = 2,
DELETE = 3,
PATCH = 4,
OPTIONS = 5
}
export interface Request {
protocol: string;
method: string;
url: string;
path: string;
hostname: string;
headers: {
[key: string]: string;
};
}
export interface OngoingRequest extends Request {
originalUrl: string;
body: {
rawStream: stream.Readable;
asBuffer: () => Promise;
asText: () => Promise;
asJson: () => Promise