UNPKG

@devcycle/nodejs-server-sdk

Version:

The DevCycle NodeJS Server SDK used for feature management.

14 lines (13 loc) 657 B
import { ConfigBody, DVCLogger, ConfigSource } from '@devcycle/types'; export declare class CDNConfigSource extends ConfigSource { private cdnURI; private logger; private requestTimeoutMS; constructor(cdnURI: string, logger: DVCLogger, requestTimeoutMS: number); getConfig<T extends boolean = false>(sdkKey: string, kind: 'server' | 'bootstrap', obfuscated: boolean, lastModifiedThreshold?: string): Promise<{ config: T extends true ? ConfigBody : ConfigBody | null; metaData: Record<string, unknown>; lastModified: string | null; }>; getConfigURL(sdkKey: string, kind: 'server' | 'bootstrap'): string; }