/** * Represents an email contact. */ export interface IZEmailContact { /** * The email address of the contact. */ address: string; /** * The type of contact. * * This can be anything you want. In the end, this has no bearing * on the final sent message. It's just a descriptor to determine what this contact * represents if needed. */ type?: string; /** * The display name of the contact. * * If this is falsy, then you can consider the * address as the display. */ display?: string; } /** * Represents a builder for an email contact. */ export declare class ZEmailContactBuilder { private _contact; /** * Initializes a new instance of this object. */ constructor(); /** * Sets the address of the contact. * * @param val - * The value to set. * * @returns * This object. */ address(val: string): this; /** * Sets the type of the contact. * * @param val - * The value to set. * * @returns * This object. */ type(val: string): this; /** * Sets the display of the contact. * * @param val - * The value to set. * * @returns * This object. */ display(val: string): this; /** * Assigns the values in other to this object. * * @param other - * The value to partial copy. * * @returns * This object. */ assign(other: Partial): this; /** * Copies another object. * * @param other - * The value to copy. * * @returns * This object. */ copy(other: IZEmailContact): this; /** * Returns a copy of the built object. * * @returns * A copy of the built email contact. */ build(): IZEmailContact; }