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 { /** The id of the database template record. */ private templateId; /** A reference to the database holding the template */ private db; /** Construct given the database and id. */ constructor(id: ObjectID, db?: Db); /** Loads the template from the database. */ protected loadTemplate(): Promise; }