import { AutoEncoder } from '@simonbackx/simple-encoding'; import { File } from '../files/File.js'; export declare class EmailInformation extends AutoEncoder { email: string; markedAsSpam: boolean; hardBounce: boolean; unsubscribedMarketing: boolean; unsubscribedAll: boolean; } export declare class Replacement extends AutoEncoder { token: string; value: string; html?: string; } export declare function replaceEmailHtml(html: string, replacements: Replacement[]): string; export declare function replaceEmailText(text: string, replacements: Replacement[]): string; export declare class Recipient extends AutoEncoder { firstName: string | null; lastName: string | null; email: string; replacements: Replacement[]; headers: Record | null; /** * Set this to create a replacement called signInUrl, which will auto sign in/sign up the user * Note: the e-mail is matched with the user id, if it doesn't match, the sign-in button will contain a simple (non smart) url */ userId: string | null; /** * @deprecated * Use types instead */ type: string | null; types: string[]; getDefaultReplacements(): Replacement[]; merge(recipient: Recipient): void; /** * Remove duplicate replacements, keeping the last added replacements */ removeDuplicates(): void; } export declare class EmailAttachment extends AutoEncoder { /** * Silently added, incompatible change but shouldn't be a problem since this was only used temporarily */ id: string; filename: string; contentType: string; /** * @deprecated * Legacy email attachments have a base64 encoded content. * This became deprecated because the size became too large to store efficiently. Instead we now require the usage of (private) files. */ content: string | null; file: File | null; get bytes(): number; get icon(): "file" | "file-image" | "file-pdf color-pdf" | "file-excel color-excel" | "file-word color-word"; } export declare class EmailRequest extends AutoEncoder { /** * ID of the sender email address */ emailId: string; subject: string; recipients: Recipient[]; text: string | null; html: string | null; attachments: EmailAttachment[]; defaultReplacements: Replacement[]; } //# sourceMappingURL=EmailRequest.d.ts.map