import type { EmailMessage } from './notification.js';

export interface EmailProvider {
  send(message: EmailMessage): Promise<void>;
}

export interface NotificationsRepository {
  findByEventId(
    eventId: string,
  ): Promise<{ template: string; recipient: string; status: string } | undefined>;
  record(message: EmailMessage): Promise<{ created: boolean }>;
}
