vwo-fme-node-sdk
Version:
VWO Node/JavaScript SDK for Feature Management and Experimentation
27 lines (26 loc) • 831 B
TypeScript
interface ISettingsService {
sdkKey: string;
getSettings(forceFetch: boolean): Promise<Record<any, any>>;
fetchSettings(): Promise<Record<any, any>>;
}
export declare class SettingsService implements ISettingsService {
sdkKey: string;
accountId: number;
expiry: number;
networkTimeout: number;
hostname: string;
port: number;
protocol: string;
isGatewayServiceProvided: boolean;
private static instance;
constructor(options: Record<string, any>);
static get Instance(): SettingsService;
private setSettingsExpiry;
private normalizeSettings;
private handleBrowserEnvironment;
private handleServerEnvironment;
private fetchSettingsAndCacheInStorage;
fetchSettings(isViaWebhook?: boolean): Promise<Record<any, any>>;
getSettings(forceFetch?: boolean): Promise<Record<any, any>>;
}
export {};