import { DynamicConfig, FeatureGate, Layer } from 'statsig-js'; import type { CheckGateOptions as GetFeatureGateOptions } from 'statsig-js'; import { CheckGateOptions, GetExperimentOptions, GetLayerOptions } from './Statsig'; /** * Returns the initialization state of the SDK and a gate value */ export type GateResult = { isLoading: boolean; value: boolean; }; /** * Returns the initialization state of the SDK and a gate object */ export type FeatureGateResult = { isLoading: boolean; gate: FeatureGate; }; export declare function useFeatureGateImpl(gateName: string, options?: GetFeatureGateOptions): FeatureGateResult; export declare function useGateWithExposureLoggingDisabledImpl(gateName: string, options?: CheckGateOptions): GateResult; export declare function useGateImpl(gateName: string, ignoreOverrides: boolean, exposureLoggingDisabled?: boolean): GateResult; /** * Returns the initialization state of the SDK and a DynamicConfig value */ export type ConfigResult = { isLoading: boolean; config: DynamicConfig; }; export declare function useConfigImpl(configName: string, ignoreOverrides: boolean, exposureLoggingDisabled?: boolean): ConfigResult; export declare function useExperimentWithExposureLoggingDisabledImpl(experimentName: string, options?: GetExperimentOptions): ConfigResult; export declare function useExperimentImpl(experimentName: string, keepDeviceValue: boolean, ignoreOverrides: boolean, exposureLoggingDisabled?: boolean): ConfigResult; /** * Returns the initialization state of the SDK and a Layer value */ export type LayerResult = { isLoading: boolean; layer: Layer; }; export declare function useLayerWithExposureLoggingDisabledImpl(layerName: string, options?: GetLayerOptions): LayerResult; export declare function useLayerImpl(layerName: string, keepDeviceValue: boolean, exposureLoggingDisabled?: boolean): LayerResult;