import { DeleteDTO } from '@hed-hog/api';
import { PaginationService } from '@hed-hog/api-pagination';
import { PrismaService } from '@hed-hog/api-prisma';
import { CreateDTO } from './dto/create.dto';
import { QueryMailSentListDTO } from './dto/query-mail-sent-list.dto';
import { UpdateDTO } from './dto/update.dto';
type MailSentUserStatus = 'received' | 'read' | 'error';
type MailSentUserLog = {
    id: number;
    recipient_email: string;
    status: MailSentUserStatus;
    read_at: Date | null;
    error_code: string | null;
    error_message: string | null;
    user_id: number;
    user_identifier_id: number | null;
    created_at: Date;
    updated_at: Date;
};
export declare class MailSentService {
    private readonly prismaService;
    private readonly paginationService;
    constructor(prismaService: PrismaService, paginationService: PaginationService);
    list(paginationParams: QueryMailSentListDTO): Promise<{
        data: {
            deliverySummary: {
                totalRecipients: number;
                receivedCount: number;
                readCount: number;
                errorCount: number;
                hasError: boolean;
                lastReadAt: Date | null;
            };
            mail_sent_user?: MailSentUserLog[];
        }[];
        total: any;
        lastPage: number;
        page: number;
        pageSize: number;
        prev: number;
        next: number;
    }>;
    get(locale: string, id: number): Promise<{
        body: string;
        id: number;
        from: string;
        created_at: Date;
        updated_at: Date;
        subject: string;
        mail_id: number;
        to: string | null;
        cc: string | null;
        bcc: string | null;
    }>;
    create({ body, from, mail_id, subject, bcc, cc, to }: CreateDTO): Promise<{
        body: string;
        id: number;
        from: string;
        created_at: Date;
        updated_at: Date;
        subject: string;
        mail_id: number;
        to: string | null;
        cc: string | null;
        bcc: string | null;
    }>;
    update(locale: string, { id, data }: {
        id: number;
        data: UpdateDTO;
    }): Promise<{
        body: string;
        id: number;
        from: string;
        created_at: Date;
        updated_at: Date;
        subject: string;
        mail_id: number;
        to: string | null;
        cc: string | null;
        bcc: string | null;
    }>;
    delete(locale: string, { ids }: DeleteDTO): Promise<{
        count: number;
    }>;
}
export {};
//# sourceMappingURL=mail-sent.service.d.ts.map