import { AttributeScope, Context as BaseContext } from '@celljs/core/lib/node'; import { Session } from './session/session-protocol.js'; import { Cookies } from './cookies/index.js'; import { Request, Response } from './http/http-protocol.js'; export { AttributeScope } from '@celljs/core/lib/node'; export declare const CURRENT_COOKIES_REQUEST_KEY = "CurrentCookiesRequest"; export declare const CURRENT_SESSION_REQUEST_KEY = "CurrentSessionRequest"; export declare const CURRENT_TRACE_ID_REQUEST_KEY = "CurrentTraceIdRequest"; export declare const CURRENT_SKIP_AUTO_END_REQUEST_KEY = "CurrentSkipAutoEndRequest"; export declare const CURRENT_TENANT_REQUEST_KEY = "CurrentTenantRequest"; export interface Context { [key: string]: any; } export declare class Context extends BaseContext { request: Request; response: Response; constructor(request: Request, response: Response); static getRequest(): Request; static getResponse(): Response; static getCookies(): Cookies; static setCookies(cookies: Cookies): void; static getSession(): Session; static setSession(session: Session): void; static setTraceId(traceId: string): void; static getTraceId(): string; static setTenant(tenant: string): void; static getTenant(): string; static setSkipAutoEnd(skipAutoEnd: boolean): void; static isSkipAutoEnd(): boolean; static setAttr(key: string, value: any, scope?: AttributeScope): void; /** * The attribute of `scope`; without one, the first scope that has the key: request, session, app. * Falsy values (0, false, '') count as set. Without a session (no session middleware) the session scope is empty. */ static getAttr(key: string, scope?: AttributeScope): T; }