import { IZEmailContact } from './email-contact.mjs'; /** * Represents an email envelope of information about who the email is from and where it's going to. */ export interface IZEmailEnvelope { /** * Who the email is from. * * This can be the full contact or just the address. */ from: IZEmailContact | string; /** * Where the email is going. * * This can be falsy if cc is filled out. */ to?: Array; /** * Who is receiving a carbon copy of the email. * * This can be falsy if to is filled out. */ cc?: Array; /** * Who is receiving a blind carbon copy of an email. */ bcc?: Array; } /** * Represents a builder for an email envelope. */ export declare class ZEmailEnvelopeBuilder { private _envelope; /** * Initializes a new instance of this object. */ constructor(); /** * Sets the from field. * * @param val - * The value to set. * * @returns * This object. */ from(val: IZEmailContact | string): this; /** * Adds a value to the 'to' field. * * @param val - * The value to add. * * @returns * This object. */ to(val: IZEmailContact | string): this; /** * Sets the to field. * * @param val - * The value to set. * * @returns * This object. */ tos(val: Array): this; /** * Adds a value to the cc field. * * @param val - * The value to add. * * @returns * This object. */ cc(val: IZEmailContact | string): this; /** * Sets the cc field. * * @param val - * The value to set. * * @returns * This object. */ ccs(val: Array): this; /** * Adds a value to the bcc field. * * @param val - * The value to add. * * @returns * This object. */ bcc(val: IZEmailContact | string): this; /** * Sets the bcc field. * * @param val - * The value to set. * * @returns * This object. */ bccs(val: Array): this; /** * Assigns another partial email envelope to this object. * * @param other - * The value to partial copy. * * @returns * This object. */ assign(other: Partial): this; /** * Copies another email envelope to this object. * * @param other - * The value to copy. * * @returns * This object. */ copy(other: IZEmailEnvelope): this; /** * Returns a copy of the built envelope. * * @returns * A copy of the currently built up envelope object. */ build(): IZEmailEnvelope; }