Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
747 B
Plaintext
25 lines
747 B
Plaintext
import { HtmlToTextOptions, SelectorDefinition } from 'html-to-text';
|
|
|
|
type Options = {
|
|
pretty?: boolean;
|
|
} & ({
|
|
plainText?: false;
|
|
} | {
|
|
plainText?: true;
|
|
/**
|
|
* These are options you can pass down directly to the library we use for
|
|
* converting the rendered email's HTML into plain text.
|
|
*
|
|
* @see https://github.com/html-to-text/node-html-to-text
|
|
*/
|
|
htmlToTextOptions?: HtmlToTextOptions;
|
|
});
|
|
|
|
declare const render: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
|
|
declare const renderAsync: (element: React.ReactElement, options?: Options) => Promise<string>;
|
|
|
|
declare const plainTextSelectors: SelectorDefinition[];
|
|
|
|
export { Options, plainTextSelectors, render, renderAsync };
|