@lightprotocol/stateless.js 0.23.0-beta.1 → 0.23.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,19 +6,29 @@ export declare enum VERSION {
6
6
  V1 = "V1",
7
7
  V2 = "V2"
8
8
  }
9
- /**
10
- /**
11
- * @internal
12
- * Feature flags. Only use if you know what you are doing.
13
- */
14
9
  export declare const featureFlags: {
15
10
  version: VERSION;
16
11
  isV2: () => boolean;
17
12
  /**
18
13
  * Beta flag for interface methods (not yet deployed on mainnet).
19
- * Runtime only - check LIGHT_PROTOCOL_BETA env var.
14
+ * Checks programmatic override first, then env var LIGHT_PROTOCOL_BETA.
20
15
  */
21
16
  isBeta: () => boolean;
17
+ /**
18
+ * Enable beta features programmatically.
19
+ * Call this once at app initialization to unlock interface methods.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * import { featureFlags } from '@lightprotocol/stateless.js';
24
+ * featureFlags.enableBeta();
25
+ * ```
26
+ */
27
+ enableBeta: () => void;
28
+ /**
29
+ * Disable beta features programmatically.
30
+ */
31
+ disableBeta: () => void;
22
32
  };
23
33
  /**
24
34
  * Error message for beta-gated interface methods.