import { SemanticType } from '../Semantics.js';
/**
 * Type guard to check if a semantic is an HTML semantic.
 */
export const isHTMLSemantic = (semantic) => {
    return semantic.id === SemanticType.HTML;
};
/**
 * Helper function to create an HTML semantic with configuration.
 */
export const createHTMLSemantic = (config = {}) => {
    const mergedConfig = {
        ...DEFAULT_HTML_CONFIG,
        ...config,
    };
    if (config.metadata) {
        mergedConfig.metadata = { ...config.metadata };
    }
    return {
        id: SemanticType.HTML,
        config: mergedConfig,
    };
};
/**
 * Default configuration for HTML semantic.
 */
export const DEFAULT_HTML_CONFIG = {
    allowedTags: ['b', 'i', 'em', 'strong', 'a', 'ul', 'ol', 'li', 'p', 'br', 'pre', 'code', 'div', 'span'],
    renderMode: 'html',
    sanitizeLevel: 'strict',
    allowImages: true,
    allowLinks: true,
    allowTables: true,
    allowForms: false,
    allowScripts: false,
    allowIframes: false,
    allowEmbedded: false,
    allowStyles: false,
    allowDataAttributes: false,
};
//# sourceMappingURL=HTML.js.map