UNPKG

@bolttech/server-side-next

Version:

This library was generated with [Nx](https://nx.dev).

33 lines (32 loc) 1.22 kB
/// <reference types="node" /> import { IncomingMessage } from 'http'; import { CmsHelperInterface } from '../interfaces'; import { Source } from '../../../common/enums/source.enum'; import { Vertical } from '@bolttech/essentials'; import { Nullable } from '../../../common/types/nullable.type'; export declare class CmsHelper implements CmsHelperInterface { private static instance; private _country; private _locale; private _vertical; private _source; private _flow; private _request; private _device; static getInstance(newInstance?: boolean): CmsHelper; get locale(): string; get vertical(): Vertical; get country(): string; get source(): Source; get flow(): string; get request(): Nullable<IncomingMessage> | undefined; get device(): Nullable<string>; setLocale(locale: string): CmsHelper; setVertical(vertical: Vertical): CmsHelper; setRequest(request: Nullable<IncomingMessage> | undefined): CmsHelper; setCountry(country?: string): CmsHelper; setDevice(device?: string): CmsHelper; setSource(source?: Source): CmsHelper; setFlow(flow?: string): CmsHelper; private isMobileDevice; }