import * as Platform from "../Platform"; import { Socket } from "../Socket"; import { Header as ResponseHeader } from "./Header"; import { Like as ResponseLike } from "./Like"; export interface Response { readonly status: number; readonly header: Readonly; readonly body?: any | Promise; readonly socket?: Socket.Factory; } export declare namespace Response { function is(value: any | Response): value is Response; function to(request: Response): Promise; function from(response: Platform.Response & { webSocket?: WebSocket | null; }): Response; function create(response: ResponseLike | Socket.Factory | any, contentType?: ResponseHeader | string): Response; type Header = ResponseHeader; const Header: typeof ResponseHeader; type Like = ResponseLike; const Like: typeof ResponseLike; }