import type { Client } from './client'; import type { NotificationType } from './types'; import type { LevoResponse } from './types/types'; export declare class Notification { private client; constructor(client: Client); /** * Send a custom email, or a template email, to the specified recipients. * * @example * * const isSuccess = await levo.notification.sendEmail({ * to: ['example@example.com'], * subject: 'Hello World', * content: 'Hello World', * }); * * console.log(isSuccess); // Outputs true if the email was sent successfully * * @example * * const isSuccess = await levo.notification.sendEmail({ * to: ['example@example.com'], * from_name: 'Demo Foundation', * subject: 'Hello World', * content: '
|
This will go in a special richtext email template
', * cc: ['john.doe@example.com'], * bcc: ['jane.doe@example.com'], * reply_to: 'support@example.com' * }); * * console.log(isSuccess); // Outputs true if the email was sent successfully * * @param {SendEmailInput} data - The data to send the email. * @returns {Promise