/// import { RouterContext } from '@koa/router'; import { InteractsWithState } from './interacts-with-state.js'; import { Application, HttpContext as HttpContextContract, HttpRequest, HttpResponse, HttpConfig } from '@supercharge/contracts'; export declare class HttpContext extends InteractsWithState implements HttpContextContract { /** * The application instance. */ private readonly app; /** * The cookie config object. */ private readonly cookieConfig; /** * Create a new HTTP context instance. */ constructor(ctx: RouterContext, app: Application, cookieConfig: HttpConfig['cookie']); /** * Returns a wrapped HTTP context for the raw Koa HTTP `ctx`. */ static wrap(ctx: RouterContext, app: Application, cookieConfig: HttpConfig['cookie']): HttpContext; /** * Returns the raw Koa HTTP context instance. */ get raw(): RouterContext; /** * Returns the HTTP request instance. */ get request(): HttpRequest; /** * Returns the HTTP response instance. */ get response(): HttpResponse; }