import { ApiResponse } from "@gongt/ts-stl-library/request/protocol"; import { ErrorResponse } from "@gongt/ts-stl-library/request/request-error"; import { RequestContext } from "./base/context"; import { ExpressHandler } from "./base/handler"; import { AssignFunction, AssignObjectFunction, MultiValueResponseWrapper } from "./base/response-wrapper"; export declare class JsonApiHandler extends ExpressHandler> { protected instanceContext(req: any, res: any): JsonApiRequestContext; } export declare class JsonApiRequestContext extends RequestContext { assign: AssignFunction; assignObject: AssignObjectFunction; readonly response: JsonApiResponseWrapper; protected createResponseWrapper(): JsonApiResponseWrapper; } export declare class JsonApiResponseWrapper extends MultiValueResponseWrapper { result: (ResType & ApiResponse) | ErrorResponse; redirect(target: string, permanent?: boolean): void; protected asyncResolve(res: ResType): void; protected asyncReject(error: any): void; protected _send(): void; }