UNPKG

featurehub-javascript-node-sdk

Version:
17 lines (16 loc) 916 B
/// <reference types="node" /> import { FeatureStateUpdate, FeatureUpdatePostManager, NodejsOptions, PollingBase, PollingService, FeaturesFunction } from 'featurehub-javascript-client-sdk'; import { RequestOptions } from 'https'; export * from 'featurehub-javascript-client-sdk'; export declare type ModifyRequestFunction = (options: RequestOptions) => void; export declare class NodejsPollingService extends PollingBase implements PollingService { private readonly uri; private readonly _options; modifyRequestFunction: ModifyRequestFunction | undefined; constructor(options: NodejsOptions, url: string, frequency: number, _callback: FeaturesFunction); poll(): Promise<void>; } export declare class NodejsFeaturePostUpdater implements FeatureUpdatePostManager { modifyRequestFunction: ModifyRequestFunction | undefined; post(url: string, update: FeatureStateUpdate): Promise<boolean>; }