import type { Mailer } from "../mail/mailer.ts"; import type { Notification } from "./notification.ts"; import type { DatabaseNotificationStore, Notifiable } from "./types.ts"; declare class NotificationDispatcher { private readonly mailer; private readonly databaseStore; constructor(mailer: Mailer, databaseStore?: DatabaseNotificationStore | null); send(notifiable: Notifiable, notification: Notification): Promise; private sendMail; private sendDatabase; } declare function createNotificationDispatcher(mailer: Mailer, databaseStore?: DatabaseNotificationStore): NotificationDispatcher; export { createNotificationDispatcher, NotificationDispatcher };