import { SentMessageInfo } from "nodemailer"; export declare function mailRoute(template: string): string; export default class Mail { private static transporter; private static getTransporter; static prepare(): Promise; static end(): void; static parse(template: string, data: any, textOnly: boolean): string; private readonly template; private readonly options; private readonly data; constructor(template: MailTemplate, data?: { [p: string]: any; }); private verifyData; send(...to: string[]): Promise; } export declare class MailTemplate { private readonly _template; private readonly subject; constructor(template: string, subject: (data: any) => string); get template(): string; getSubject(data: any): string; }