/** * Template service — load, parse, and apply user-defined email templates. * * Templates are stored as TOML files in the XDG config templates directory. * Each template has a name, optional description, subject, body, and a list * of variable names used for {{variable}} substitution. */ import type { EmailTemplate } from '../types/index.js'; export default class TemplateService { private templatesDir; constructor(templatesDir?: string); /** * List all templates from the templates directory. * Returns metadata only (name, description, variables). */ listTemplates(): Promise; /** * Get a single template by name. */ getTemplate(name: string): Promise; /** * Apply variable substitution to a template. * Returns the composed subject and body with variables replaced. * Missing variables are left as {{variable}} placeholders. */ applyTemplate(name: string, variables: Record): Promise<{ subject: string; body: string; html: boolean; }>; /** Get the templates directory path. */ get directory(): string; } //# sourceMappingURL=template.service.d.ts.map