@flagship.io/js-sdk
Version:
17 lines (16 loc) • 697 B
TypeScript
import { primitive } from '../types';
import { HitAbstract, IHitAbstract } from './HitAbstract';
export declare const ERROR_MESSAGE = "data property is required";
export interface ISegment extends IHitAbstract {
context: Record<string, primitive>;
}
export declare class Segment extends HitAbstract implements ISegment {
private _context;
get context(): Record<string, primitive>;
set context(v: Record<string, primitive>);
constructor(param: Omit<ISegment, 'type' | 'createdAt' | 'visitorInstanceId' | 'traffic'>);
isReady(checkParent?: boolean): boolean;
toApiKeys(): Record<string, unknown>;
toObject(): Record<string, unknown>;
getErrorMessage(): string;
}