import { EnumLiteralsOf, IPricing, UUID, Decimal } from '../../../core'; export declare type ProductPricingType = EnumLiteralsOf; export declare const ProductPricingType: Readonly<{ readonly FUNCTION: "FUNCTION"; readonly STATIC: "STATIC"; }>; export declare type PricingGeneratorBase = Record> = { pricing_type: ProductPricingType; } & T; export declare type FunctionPricingGenerator = PricingGeneratorBase<{ /** * The source code for a JavaScript function that takes in one object parameter named params * * e.g., function (params) { return params.x + params.y * 20; } */ function: string; }>; export declare type StaticPricingGenerator = PricingGeneratorBase<{ amount: Decimal; }>; export declare type PricingGenerator = FunctionPricingGenerator | StaticPricingGenerator; export interface IProductPricingGeneratorDoc { pricing_generator: PricingGenerator; } export declare type IGenerateProductPriceDTO = Record> = { product_pricing_id: UUID; params: T; }; export declare type IProductPriceGeneratedDTO = Record> = { product_pricing_id: UUID; params: T; price: IPricing; }; export declare type IGenerateProductPricesDTO = IGenerateProductPriceDTO[]; export declare type IProductPricesGeneratedDTO = IProductPriceGeneratedDTO[];