import { MailerService } from '@nestjs-modules/mailer';
import { ConfigService } from '@nestjs/config';
import { SentMessageInfo } from 'nodemailer';
export declare enum EmailType {
    CRON = "cron",
    REST = "rest"
}
interface SendMailOptions {
    to: string | string[];
    from: string;
    subject: string;
    view: string;
    variables?: any;
    type: EmailType;
    force?: boolean;
}
export declare class MailHandler {
    private readonly mailerService;
    private readonly configService;
    private readonly logger;
    private isValidEnv;
    constructor(mailerService: MailerService, configService: ConfigService);
    sendMail({ force, ...options }: SendMailOptions): Promise<SentMessageInfo | boolean>;
}
export {};
