import type { LDLogger, LDOptions } from 'launchdarkly-js-client-sdk'; import type { Logger } from '@openfeature/web-sdk'; /** * Options for the {@link LaunchDarklyClientProvider}. * if you want to opt in for streaming you should set streaming: true explicitly */ export interface LaunchDarklyProviderOptions extends LDOptions { /** * Configures a logger for warnings and errors generated by the provider. * * The logger can be any object that conforms to the `LDLogger` interface. * For a simple implementation that lets you filter by log level, see * `basicLogger`. You can also use an instance of `winston.Logger` from * the Winston logging package. * * If you do not set this property, the provider uses `basicLogger` with a * minimum level of `info`. * * disclaimer: this logger instance will be used by the launch-darkly sdk */ logger?: LDLogger | Logger; /** * Configures the amount of time, in seconds, to wait for initialization when * connecting to the LaunchDarkly service. * * Using a large timeout is not recommended as network delays may cause your * application to wait a long time before continuing execution. * * See the launchdarkly-js-client-sdk docs for more details: * {@link https://launchdarkly.github.io/js-client-sdk/interfaces/LDClient.html#waitForInitialization} */ initializationTimeout?: number; }