import { HttpClient } from '@angular/common/http'; import * as i0 from '@angular/core'; /** * Entity to model an email message to send to the server ToolBox. */ declare class TbxEmailInfo { to: string; subject: string; body?: string | undefined; cc?: string | undefined; bcc?: string | undefined; files?: string[] | undefined; /** * Initializes a new instance of the {@link TbxEmailInfo} class. * * @param to a list of emails separated by a comma (,) or semicolon (;). * @param subject The email subject. * @param body The email body. * @param cc A list of emails separated by a comma (,) or semicolon (;). * @param bcc A list of emails separated by a comma (,) or semicolon (;). * @param files A list of files to attach separated by a comma or semicolon. */ constructor(to: string, subject: string, body?: string | undefined, cc?: string | undefined, bcc?: string | undefined, files?: string[] | undefined); } /** * Sends email through the internal SMTP server using the ToolBox. */ declare class TbxEmailService { private readonly http; /** Gets or sets the URL to the ToolBox SendMail endpoint. */ smtpUrl: string; constructor(http: HttpClient); /** * Sends an email. * @param email - The email to send. * @returns An observable that indicates success or failure. */ send(email: TbxEmailInfo): Promise; /** * Sends an email. * @param to - A list of emails separated by a comma (,) or semicolon (;). * @param subject - The email subject. * @param body - The message to send. * @param cc - A list of emails separated by a comma (,) or semicolon (;). * @param bcc - A list of emails separated by a comma (,) or semicolon (;). * @returns An observable that indicates success or failure. */ sendEmail(to: string, subject: string, body?: string, cc?: string, bcc?: string): Promise; /** * Sends the email. * @param emailInfo - The email message. * @returns A promise that indicates success or failure. */ private doSendEmail; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { TbxEmailInfo, TbxEmailService };