import { IncomingMessage, ServerResponse } from 'http'; import { ReadStream } from 'fs'; declare type JsonMap = { [key: string]: any; }; declare type JsonType = { [key: string]: any; } | number | null; export declare class Context { request: IncomingMessage; response: ServerResponse; path: string; private form; status: number; body: string | JsonType | ReadStream | Buffer; constructor(req: IncomingMessage, res: ServerResponse, path: string, form: JsonMap); Param(key?: string): any; FormValue(key?: string): any; QueryParam(key?: string): any; JSON(code: number, data: JsonType): void; String(code: number, data: string): void; HTML(code: number, data: string): void; Stream(code: number, data: ReadStream): void; } export {};