/** * Resolves whether the Approval Rules V3 experience is enabled for the * caller's tenant, by reading the `approval_rule_v3_config` dynamic * config from Statsig. * * Expected JSON shape (Statsig configValue): * ``` * { * "tenant_list": [ * "tenant_2109f382-c14b-4e5d-ad81-c66d4c41da27", * ... * ], * "is_enabled_for_all_tenants": false * } * ``` * * Resolution logic (evaluated top to bottom; first match wins): * 1. While Statsig is still loading, return `false` so the UI defaults * to the safe (legacy V1) path during initial render. * 2. If `is_enabled_for_all_tenants` is `true` → enable V3 globally. * 3. Otherwise → enable V3 only when the caller's tenant ID appears * in `tenant_list`. * * `tenantId` is passed in (not read inside the hook) because the * tenant lives in the host app's Redux state and `GlobalInfoProvider` * context, which `web-components` does not depend on directly. */ export declare function useApprovalRulesV3Config(tenantId: string | undefined): { isApprovalRulesV3Enabled: boolean; isLoading: boolean; };