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