20 lines
650 B
TypeScript
20 lines
650 B
TypeScript
export interface LocalizedSubjects {
|
|
[key: string]: {
|
|
en: string;
|
|
hu: string;
|
|
de: string;
|
|
};
|
|
}
|
|
export interface TemplateData {
|
|
[key: string]: any;
|
|
}
|
|
export interface EmailTemplate {
|
|
html: string;
|
|
text: string;
|
|
}
|
|
export declare class EmailTemplateHelper {
|
|
static getLocalizedSubject(subjectKey: string, subjects: LocalizedSubjects, language: 'en' | 'hu' | 'de'): string;
|
|
static replaceTemplatePlaceholders(template: string, data: TemplateData): string;
|
|
static processTemplate(templateContent: EmailTemplate, data: TemplateData): EmailTemplate;
|
|
}
|
|
//# sourceMappingURL=EmailTemplateHelper.d.ts.map
|