import { SemanticType } from '../Semantics.js';
/**
 * Type guard to check if a semantic is an Email semantic.
 */
export const isEmailSemantic = (semantic) => {
    return semantic.id === SemanticType.Email;
};
/**
 * Helper function to create an Email semantic with configuration.
 */
export const createEmailSemantic = (config = {}) => {
    const mergedConfig = {
        ...DEFAULT_EMAIL_CONFIG,
        ...config,
    };
    if (config.metadata) {
        mergedConfig.metadata = { ...config.metadata };
    }
    return {
        id: SemanticType.Email,
        config: mergedConfig,
    };
};
/**
 * Default configuration for Email semantic.
 */
export const DEFAULT_EMAIL_CONFIG = {
    requireVerification: true,
    allowSubaddressing: true,
    allowInternational: true,
};
//# sourceMappingURL=Email.js.map