@lightprotocol/stateless.js 0.22.1-alpha.7 → 0.23.0-beta.1

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.
@@ -14,7 +14,23 @@ export declare enum VERSION {
14
14
  export declare const featureFlags: {
15
15
  version: VERSION;
16
16
  isV2: () => boolean;
17
+ /**
18
+ * Beta flag for interface methods (not yet deployed on mainnet).
19
+ * Runtime only - check LIGHT_PROTOCOL_BETA env var.
20
+ */
21
+ isBeta: () => boolean;
17
22
  };
23
+ /**
24
+ * Error message for beta-gated interface methods.
25
+ */
26
+ export declare const BETA_REQUIRED_ERROR: string;
27
+ /**
28
+ * Assert that beta features are enabled.
29
+ * Throws if V2 is not enabled OR if beta is not enabled.
30
+ *
31
+ * Use this at the entry point of all interface methods.
32
+ */
33
+ export declare function assertBetaEnabled(): void;
18
34
  /**
19
35
  * Returns the correct endpoint name for the current API version. E.g.
20
36
  * versionedEndpoint('getCompressedAccount') -> 'getCompressedAccount' (V1)