import { SemanticType } from '../Semantics.js';
export const isCountrySemantic = (semantic) => {
    return semantic.id === SemanticType.Country;
};
export const createCountrySemantic = (config = {}) => {
    const mergedConfig = {
        ...DEFAULT_COUNTRY_CONFIG,
        ...config,
    };
    // Merge metadata separately
    if (config.metadata) {
        mergedConfig.metadata = { ...config.metadata };
    }
    return {
        id: SemanticType.Country,
        config: mergedConfig,
    };
};
export const DEFAULT_COUNTRY_CONFIG = {
    format: 'ISO_3166_Alpha_2',
};
//# sourceMappingURL=Country.js.map