import { ISerializable, Serializable } from "@js-soft/ts-serval"; import { CoreAddress, ICoreAddress } from "@nmshd/core-types"; import { ContentJSON } from "../ContentJSON"; export declare enum MailBodyFormat { PlainText = "PlainText", Markdown = "Markdown" } export interface MailJSON extends ContentJSON { "@type": "Mail"; to: string[]; cc?: string[]; subject: string; body: string; bodyFormat: `${MailBodyFormat}`; } export interface IMail extends ISerializable { to: ICoreAddress[]; cc?: ICoreAddress[]; subject: string; body: string; bodyFormat: MailBodyFormat; } export declare class Mail extends Serializable implements IMail { to: CoreAddress[]; cc?: CoreAddress[]; subject: string; body: string; bodyFormat: MailBodyFormat; protected static preFrom(value: any): any; static from(value: IMail | Omit): Mail; toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): MailJSON; } //# sourceMappingURL=Mail.d.ts.map