import { SemanticType } from '../Semantics.js';
/**
 * Type guard to check if a semantic is a Calculated semantic.
 */
export const isCalculatedSemantic = (semantic) => {
    return semantic.id === SemanticType.Calculated;
};
/**
 * Helper function to create a Calculated semantic with configuration.
 */
export const createCalculatedSemantic = (config) => {
    const mergedConfig = {
        ...DEFAULT_CALCULATED_CONFIG,
        ...config,
    };
    if (config.metadata) {
        mergedConfig.metadata = { ...config.metadata };
    }
    return {
        id: SemanticType.Calculated,
        config: mergedConfig,
    };
};
/**
 * Default configuration for Calculated semantic.
 */
export const DEFAULT_CALCULATED_CONFIG = {
    recalculateOnUpdate: true,
    allowManualOverride: false,
};
//# sourceMappingURL=Calculated.js.map