@brainspore/shackuz
Version:
Nodejs Email Templating Engine
28 lines • 701 B
TypeScript
interface BlockType {
[key: string]: any;
}
interface Config {
[key: string]: any;
}
export declare class EmailTemplateBuilder {
private theme;
private blocks;
private appConfig;
private styles;
private customFooter;
constructor(config?: Config);
/**
* Set custom footer content (HTML string or plain text)
* @param content string
*/
setFooter(content: string): this;
private static toKebabCase;
private static objectToCSS;
private static defaultStyles;
static blocks: BlockType;
addBlock(type: string, ...args: any[]): this;
buildHTML(): string;
private sanitizeArgs;
}
export {};
//# sourceMappingURL=engine.d.ts.map