UNPKG

@xtr-dev/payload-mailing

Version:

Template-based email system with scheduling and job processing for PayloadCMS

29 lines 863 B
interface SerializedEditorState { root: { children: SerializedLexicalNode[]; }; } interface SerializedLexicalNode { type: string; children?: SerializedLexicalNode[]; text?: string; format?: number; tag?: string; listType?: 'number' | 'bullet'; url?: string; newTab?: boolean; } /** * Converts Lexical richtext content to HTML */ export declare function serializeRichTextToHTML(richTextData: SerializedEditorState): string; /** * Converts Lexical richtext content to plain text */ export declare function serializeRichTextToText(richTextData: SerializedEditorState): string; /** * Applies Handlebars variables to richtext-generated HTML/text */ export declare function applyVariablesToContent(content: string, variables: Record<string, any>): string; export {}; //# sourceMappingURL=richTextSerializer.d.ts.map