import { IZEmailEnvelope } from './email-envelope.mjs'; /** * Represents an email message. */ export interface IZEmail { /** * The email envelope of where the email is going to. */ envelope: IZEmailEnvelope; /** * The subject (title) of the email. */ subject?: string; /** * The message to send. */ message?: string; } /** * Represents a builder for an email. */ export declare class ZEmailBuilder { private _email; /** * Initializes a new instance of this object. */ constructor(); /** * Sets the envelope of where the email is going. * * @param val - * The value to set. * * @returns * This object. */ envelope(val: IZEmailEnvelope): this; /** * Sets the subject line of the email. * * @param val - * The value to set. * * @returns * This object. */ subject(val: string): this; /** * Sets the message of the email. * * The message can be raw text or html. * * @param val - * A html enabled formatted message to set. * * @returns * This object. */ message(val: string): this; /** * Assigns the other object to the current email object. * * @param other - * The object to copy. * * @returns * This object. */ assign(other: Partial): this; /** * Copies another email into the builder. * * @param other - * The object to copy. * * @returns * This object. */ copy(other: IZEmail): this; /** * Returns a copy of the built object. * * @returns * A copy of the built object. */ build(): IZEmail; }