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: 'Demo Email Template
 

Hello!

We’re pleased to connect with you. We hope you find the information valuable.

Learn More

Our goal is to provide clarity and engagement, ensuring your experience is meaningful.

Thank you for your interest! We appreciate your support.

Doe and Company, 123 Business Rd, Suite 100, Anytown, USA
Prefer not to receive these emails?Unsubscribe.
 
', * 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 * * @example * * const isSuccess = await levo.notification.sendEmail({ * key: 'richtext', * 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} A promise that resolves to a boolean indicating whether the email was sent successfully. * @throws {LevoError.Platform} If the email is invalid. * @throws {LevoError.Platform} If the subject or content is not given. * @throws {LevoError.Platform} If the workspace is not found. */ sendEmail(data: NotificationType.SendEmailInput): Promise>; }