UNPKG

@devcycle/nextjs-sdk

Version:

The Next.js SDK for DevCycle!

9 lines (8 loc) 530 B
import { DVCPopulatedUser } from '@devcycle/js-client-sdk'; import { BucketedUserConfig, ConfigBody } from '@devcycle/types'; export declare const fetchCDNConfig: (sdkKey: string, clientSDKKey: string, obfuscated: boolean) => Promise<{ config: ConfigBody; headers: Headers; }>; export declare const hasOptInEnabled: (userId: string, sdkKey: string) => Promise<boolean>; export declare const sdkConfigAPI: (sdkKey: string, user: DVCPopulatedUser, obfuscated: boolean, enableEdgeDB: boolean) => Promise<BucketedUserConfig>;