import { Db, ObjectID } from "mongodb"; import EmailTemplate from "./email-template"; /** An email template backed by a template record in the database. */ export default class DatabaseTemplate extends EmailTemplate { private readonly templateId; private readonly db; /** The cached template record */ private readonly templateRecord; /** Construct given the database and id. */ constructor(templateId: ObjectID, db: Db); /** Loads the template from the database. */ protected loadTemplate(): Promise; /** Loads the text template from the database */ protected loadTextTemplate(): Promise; }