import {SendGridConfig, SendGridMail} from 'app/gen-server/lib/NotifierTypes'; export interface INotifier { // for test purposes, check if any notifications are in progress readonly testPending: boolean; deleteUser(userId: number): Promise; // Intercept outgoing messages for test purposes. // Return undefined if no notification system is available. testSetSendMessageCallback(op: (body: SendGridMail, description: string) => Promise): SendGridConfig|undefined; }