UNPKG

318 BTypeScriptView Raw
1declare type postProcessOptions = {
2 optimizeFonts: boolean;
3 optimizeImages: boolean;
4};
5declare type renderOptions = {
6 getFontDefinition?: (url: string) => string;
7};
8declare function processHTML(html: string, data: renderOptions, options: postProcessOptions): Promise<string>;
9export default processHTML;