import { ApiRequest } from "@gongt/ts-stl-library/request/protocol"; import { Request, Response } from "express-serve-static-core"; import { ResponseInterface } from "./response-wrapper"; export interface RequestContextCreator { new (req: Request, res: Response): RequestContext; } export declare abstract class RequestContext { protected req: Request; protected res: Response; readonly response: ResponseInterface; readonly params: ReqType & ApiRequest; constructor(req: Request, res: Response); protected abstract createResponseWrapper(): ResponseInterface; readonly __dump: { req: Request; res: Response; }; getHeader(key: string): string | string[]; readonly isXhr: boolean; setSession(name: string, value: any): void; }