cdk-insights
Version:
AWS CDK security and cost analysis tool with AI-powered insights
29 lines (28 loc) • 944 B
TypeScript
export interface FeatureFlags {
staticAnalysis: boolean;
basicServiceChecks: boolean;
localAnalysis: boolean;
jsonOutput: boolean;
tableOutput: boolean;
aiRecommendations: boolean;
githubIntegration: boolean;
teamCollaboration: boolean;
advancedOutputFormats: boolean;
customRules: boolean;
prioritySupport: boolean;
ciCdIntegration: boolean;
}
export declare const FREE_TIER_FEATURES: FeatureFlags;
export declare const PRO_TIER_FEATURES: FeatureFlags;
export interface LicenseInfo {
isValid: boolean;
tier: 'free' | 'pro';
expiresAt?: Date;
features: FeatureFlags;
}
export declare const createFeatureManager: (licenseInfo: LicenseInfo) => {
isFeatureEnabled: (feature: keyof FeatureFlags) => boolean;
getAvailableFeatures: () => FeatureFlags;
requireFeature: (feature: keyof FeatureFlags) => void;
getUpgradeMessage: (feature: keyof FeatureFlags) => string;
};