UNPKG

tggl-client

Version:

Tggl Typescript SDK for client and server

35 lines (34 loc) 1.07 kB
import { TgglReportingOptions } from './types'; export declare const PACKAGE_VERSION = "2.1.2"; export declare class TgglReporting { private app; appPrefix: string | null; private apiKey; private url; private disabled; private reportInterval; private flagsToReport; private receivedPropertiesToReport; private receivedValuesToReport; constructor({ app, appPrefix, apiKey, url, baseUrl, reportInterval, }: TgglReportingOptions); disable(): void; private sendReport; reportFlag(slug: string, data: { value?: any; default?: any; }): void; reportContext(context: any): void; mergeReport(report: { receivedProperties?: Record<string, [number, number]>; receivedValues?: Record<string, Array<[string] | [string, string]>>; clients?: Array<{ id?: string; flags: Record<string, Array<{ value?: any; default?: any; count?: number; }>>; }>; }): void; private incrementFlag; }