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