"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.BaseEmailProvider=void 0;class BaseEmailProvider{constructor(e,o){this.name=e;this.config=o||this.loadConfigFromEnv()}formatEmail(e,o){return o?`"${o}" <${e}>`:e}isValidEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}log(e,o){void 0!==o?console.log(`[${this.name}] ${e}`,o):console.log(`[${this.name}] ${e}`)}logError(e,o){console.error(`[${this.name}] ERROR: ${e}`,o)}}exports.BaseEmailProvider=BaseEmailProvider;