export type SendGridConfig = {
    apiKey: string;
};
export type MailAddress = {
    email: string;
    name?: string;
};
export type MailAttachment = {
    filename: string;
    content: Buffer;
};
export type MailMessage = {
    to: string | string[];
    from: MailAddress;
    subject: string;
    text: string;
    html?: string;
    attachments?: MailAttachment[];
};
export type SendResult = {
    ok: boolean;
    provider: 'sendgrid';
    messageId?: string;
};
export declare const SendGridDriver: Readonly<{
    send(config: SendGridConfig, message: MailMessage): Promise<SendResult>;
}>;
export default SendGridDriver;
//# sourceMappingURL=SendGrid.d.ts.map