import { Address } from "../types/mailtrap"; import { NodemailerAddress, NodemailerRecipients } from "../types/transport"; /** * If type of `recipient` is string, then wraps it into email object. * Otherwise maps into { `name`, `email` } pair, `name` being optional in nodemailer. */ export declare function adaptSingleRecipient(recipient: string | NodemailerAddress): Address; /** * If there is no recipient, then returns empty array. * Otherwise flattens recipients and adopts each one for Mailtrap. * Recipients without an address are left out, as nodemailer leaves them out of the envelope and the headers. */ export default function adaptRecipients(recipients: NodemailerRecipients | undefined): Address[]; /** * Returns the first recipient that has an address, or undefined when there is none, since it is an optional field. * Used for `from` and `reply_to` as Mailtrap supports a single address for both. */ export declare function adaptFirstRecipient(recipients: NodemailerRecipients | undefined): Address | undefined; //# sourceMappingURL=recipients.d.ts.map