import { CollectionDocument } from './collection-document.model';
export interface EmailHistoryOccurrence {
    _id: string;
    createdAt: Date;
    subject: string;
    text?: string;
    html?: string;
    meta?: Record<string, any>;
}
export interface EmailHistoryModel extends CollectionDocument {
    date: Date;
    id_user: string;
    user: string;
    email: string;
    subject: string;
    text: string;
    html: string;
    attachments: any[];
    cc?: string[];
    send_from: string;
    reply_to: string;
    status: EmailHistoryStatusType;
    error: string;
    processingAt?: Date;
    completedAt?: Date;
    force_ses?: boolean;
    headers?: Record<string, string>;
    correlationId?: string;
    meta?: Record<string, any>;
    occurrences?: EmailHistoryOccurrence[];
}
export type EmailHistoryStatusType = 'pending' | 'processing' | 'completed' | 'failed';
