/**
 * GrowthBook Analytics Stub
 * 
 * This file replaces the real GrowthBook integration to ensure all feature
 * flag checks return their default values, disabling telemetry-driven
 * feature toggles.
 */

export function hasGrowthBookEnvOverride(_key: string): boolean {
  return false;
}

export async function initializeGrowthBook(): Promise<void> {
  // No-op
}

export function refreshGrowthBookAfterAuthChange(): void {
  // No-op
}

export function getFeatureValue_CACHED_MAY_BE_STALE<T>(key: string, defaultValue: T): T {
  // Always return the default value to keep the application stable without remote flags.
  return defaultValue;
}

export function getFeatureValue_BLOCKING<T>(key: string, defaultValue: T): T {
  return defaultValue;
}

export function checkGate_CACHED_MAY_BE_STALE(key: string, defaultValue = false): boolean {
  return defaultValue;
}

export function checkGate_BLOCKING(key: string, defaultValue = false): boolean {
  return defaultValue;
}
