UNPKG

@omniconvert/server-side-testing-sdk

Version:

TypeScript SDK for server-side A/B testing and experimentation

35 lines 1.22 kB
import { ContextParamInterface, ContextParamAttribute } from './ContextParamInterface'; import { ContextParamType } from '../../types'; /** * Abstract base class for context parameters * Provides common functionality for all context parameter types */ export declare abstract class AbstractContextParam implements ContextParamInterface { static readonly TYPE_SCALAR: ContextParamType; static readonly TYPE_ARRAY: ContextParamType; protected static NAME: string; protected static TYPE: ContextParamType; private name; private type; private value; private attributes; constructor(value?: unknown, attributes?: ContextParamAttribute[]); getName(): string; setName(name: string): void; getType(): ContextParamType; setType(type: ContextParamType): void; getValue(): unknown; setValue(value: unknown): void; getAttributes(): ContextParamAttribute[]; addAttribute(attribute: ContextParamAttribute): void; toArray(): Record<string, unknown>; /** * Convert to string for easy debugging */ toString(): string; /** * Convert to JSON */ toJSON(): Record<string, unknown>; } //# sourceMappingURL=AbstractContextParam.d.ts.map