import { LDContext, LDClient } from '@launchdarkly/vercel-server-sdk'; export { LDContext } from '@launchdarkly/vercel-server-sdk'; import { Adapter } from 'flags'; export { getProviderData } from './provider/index.js'; interface AdapterOptions { defaultValue?: ValueType; } type AdapterResponse = { variation: (options?: AdapterOptions) => Adapter; /** The LaunchDarkly client instance used by the adapter. */ ldClient: LDClient; }; declare function createLaunchDarklyAdapter({ projectSlug, clientSideId, globalConfigConnectionString, edgeConfigConnectionString, }: { projectSlug: string; clientSideId: string; globalConfigConnectionString?: string; /** @deprecated Use `globalConfigConnectionString` instead. */ edgeConfigConnectionString?: string; }): AdapterResponse; /** * The default LaunchDarkly adapter. * * This is a convenience object that pre-initializes the LaunchDarkly SDK and provides * the adapter function for usage with the Flags SDK. * * This is the recommended way to use the LaunchDarkly adapter. * * ```ts * // flags.ts * import { flag } from 'flags/next'; * import { ldAdapter, type LDContext } from '@flags-sdk/launchdarkly'; * * const flag = flag({ * key: 'my-flag', * defaultValue: false, * identify: () => ({ key: "user-123" }), * adapter: ldAdapter.variation(), * }); * ``` */ declare const ldAdapter: AdapterResponse; export { createLaunchDarklyAdapter, ldAdapter };