import { Decimal, EnumLiteralsOf, IModuleLink, ISODATE } from './SimpleTypes'; export declare type CurrencyType = EnumLiteralsOf; export declare const CurrencyType: Readonly<{ readonly US: "US"; }>; export declare type PricingType = EnumLiteralsOf; export declare const PricingType: Readonly<{ readonly DIRECT: "DIRECT"; readonly GENERATOR: "GENERATOR"; readonly GENERATOR_CACHED: "GENERATOR_CACHED"; readonly RELATIVE: "RELATIVE"; }>; export interface IDirectPricingDetails { amount: Decimal; } export interface IGeneratorPricingDetails extends IModuleLink { } export interface IGeneratorCachedPricingDetails extends IModuleLink { amount: Decimal; cached_date: ISODATE; } export interface IRelativePricingDetails extends IModuleLink { difference: Decimal; field_name: string; } export interface IPricing { pricing_type: PricingType; currency_type: CurrencyType; details: IDirectPricingDetails | IGeneratorPricingDetails | IRelativePricingDetails; } export interface IDirectPricing { pricing_type: typeof PricingType.DIRECT; currency_type: CurrencyType; details: IDirectPricingDetails; } export interface IGeneratorPricing { pricing_type: typeof PricingType.GENERATOR; currency_type: CurrencyType; details: IGeneratorPricingDetails; } export interface IGeneratorCachedPricing { pricing_type: typeof PricingType.GENERATOR_CACHED; currency_type: CurrencyType; details: IGeneratorCachedPricingDetails; } export interface IRelativePricing { pricing_type: typeof PricingType.RELATIVE; currency_type: CurrencyType; details: IRelativePricingDetails; }