export var BillingPlan;
(function (BillingPlan) {
    BillingPlan["TRIAL"] = "TRIAL";
    /** @deprecated Legacy v1 plan — no longer issued to new organizations. */
    BillingPlan["FREE"] = "FREE";
    /** @deprecated Legacy v1 plan — no longer issued to new organizations. */
    BillingPlan["STARTER"] = "STARTER";
    /** @deprecated Legacy v1 plan — no longer issued to new organizations. */
    BillingPlan["PRO"] = "PRO";
    BillingPlan["ENTERPRISE"] = "ENTERPRISE";
    BillingPlan["TEAMS"] = "TEAMS";
    BillingPlan["POC"] = "POC";
})(BillingPlan || (BillingPlan = {}));
const ENTERPRISE_LIKE_PLANS = new Set([
    BillingPlan.ENTERPRISE,
    BillingPlan.PRO,
    BillingPlan.STARTER,
    BillingPlan.POC
]);
const TRIAL_LIKE_PLANS = new Set([BillingPlan.TRIAL, BillingPlan.FREE]);
/**
 * Plans entitled to the Policy Gates MVP. The MVP rollout is limited to
 * enterprise (and POC) orgs, so this is intentionally narrower than
 * {@link isEnterpriseLikePlan} (which also covers legacy PRO/STARTER).
 */
const POLICY_GATES_ENTITLED_PLANS = new Set([BillingPlan.ENTERPRISE, BillingPlan.POC]);
export function isEnterpriseLikePlan(plan) {
    return plan != null && ENTERPRISE_LIKE_PLANS.has(plan);
}
export function isPolicyGatesEntitledPlan(plan) {
    return plan != null && POLICY_GATES_ENTITLED_PLANS.has(plan);
}
export function isTrialLikePlan(plan) {
    return plan != null && TRIAL_LIKE_PLANS.has(plan);
}
//# sourceMappingURL=billing.js.map