import * as nodemailer from 'nodemailer'; import MailerMail = require('nodemailer/lib/mailer'); import { Credentials } from 'nodemailer/lib/smtp-connection'; import { Options } from 'nodemailer/lib/xoauth2'; import { Mail } from '../Mail'; import { Office } from './Office'; export declare type GmailAuthOptions = Credentials | Options; export declare enum GmailAuthType { login = "login", oauth2 = "oauth2" } export declare type GmailOfficeOptions = { authType: GmailAuthType; settings: GmailAuthOptions; mailer?: any; } & ({ authType: GmailAuthType.login; settings: Credentials; } | { authType: GmailAuthType.oauth2; settings: Options; }); export declare class GmailOffice extends Office { mailer: MailerMail; constructor(options: GmailOfficeOptions); send(mail: Mail): Promise; }