import { ID } from '@pickerjs/common/lib/shared-types'; import { Request } from 'express'; import { CachedSession } from '../../config/session-cache/session-cache-strategy'; import { PickerContext } from '../../schema/types'; export interface SerializedRequestContext { _req?: any; _picker?: PickerContext; } export declare class RequestContext { private readonly _languageCode; private readonly _session?; private readonly _isAuthorized; private readonly _authorizedAsOwnerOnly; private readonly _translationFn; private readonly _req?; private readonly _picker?; constructor(options: { req?: Request; picker?: PickerContext; }); static empty(): RequestContext; static deserialize(ctxObject: SerializedRequestContext): RequestContext; serialize(): SerializedRequestContext; get session(): CachedSession | undefined; get activeUserId(): ID | undefined; get authorizedAsOwnerOnly(): boolean; get isAuthorized(): boolean; get picker(): PickerContext; private isAuthenticatedSession; private shallowCloneRequestObject; }