import { SemanticType } from '../Semantics.js';
/**
 * Type guard to check if a semantic is a Categories semantic.
 */
export const isCategoriesSemantic = (semantic) => {
    return semantic.id === SemanticType.Categories;
};
/**
 * Helper function to create a Categories semantic with configuration.
 */
export const createCategoriesSemantic = (config = {}) => {
    const mergedConfig = {
        ...DEFAULT_CATEGORIES_CONFIG,
        ...config,
    };
    if (config.metadata) {
        mergedConfig.metadata = { ...config.metadata };
    }
    return {
        id: SemanticType.Categories,
        config: mergedConfig,
    };
};
/**
 * Default configuration for Categories semantic.
 */
export const DEFAULT_CATEGORIES_CONFIG = {
    allowCustomCategories: true,
    allowHierarchy: true,
    caseSensitive: false,
    allowUnicode: false,
};
//# sourceMappingURL=Categories.js.map