export declare type Request = { url: string; method?: HttpMethodLiteral | Method; headers?: HttpHeaderLiteral; body?: Body; withCredentials?: boolean; }; export declare type Response = { statusCode: number; headers: HttpHeaderLiteral; contentType: null | string; xhr: XMLHttpRequest; body: Body; }; export interface NextFunction { (): Promise; } export declare type HttpHeaderLiteral = { [key: string]: string | string[]; }; export declare type HttpMethodLiteral = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "UPDATE"; export declare enum Method { GET = "GET", POST = "POST", PUT = "PUT", PATCH = "PATCH", DELETE = "DELETE", HEAD = "HEAD", UPDATE = "UPDATE" } export declare type Middleware = (request: Req, next: NextFunction) => Promise; export * from "./portal"; export * from "./supportsJson"; export * from "./withPrefix"; export * from "./withHeader"; export * from "./withAuth"; export * from "./withXSRFToken";