UNPKG

pricing4react

Version:

A library of components that ease the integration of feature toggling driven by pricing plans into your React application's UI.

9 lines (8 loc) 810 B
import { AttributeType, Attributes, Expression, Operators, Plans, RawFeatureAttributes, RawPlans, RawPricingContext, UserContextAttributes } from "../types"; export declare function computeEvaluation(leftOperand: string, operator: Operators, rightOperand: string): string; export declare function computeType(value: any): AttributeType; export declare function parseAttributeExpressionToUserAttributes(attributes: Attributes): UserContextAttributes; export declare function parseExpression(expression: string): Expression; export declare function buildRawPricingContext(attributes: Attributes, plans: Plans): RawPricingContext; export declare function rawFeatureAttributesToAttributes(rawFeatureAttributes: RawFeatureAttributes): Attributes; export declare function rawPlansToPlans(rawPlans: RawPlans): Plans;