@mui/x-license
Version:
MUI X License verification.
11 lines • 601 B
TypeScript
export declare const PLAN_SCOPES: readonly ["pro", "premium"];
export declare const PLAN_VERSIONS: readonly ["2022", "initial", "Q3-2024", "Q1-2026"];
export type PlanScope = (typeof PLAN_SCOPES)[number];
export type PlanVersion = (typeof PLAN_VERSIONS)[number];
/**
* Checks if a plan version is older than or equal to the given threshold
* using the ordering defined in PLAN_VERSIONS.
* This can be reused for future major version gates
* (e.g. v10 could set its own max plan version).
*/
export declare function isPlanVersionOlderOrEqual(planVersion: string, maxVersion: PlanVersion): boolean;