html-to-image-skippable-font
Version:
Forks Bubkoo's html-to-image implementing skippable font reduction.
6 lines (5 loc) • 459 B
TypeScript
import { Options } from './types';
export declare function parseURLs(cssText: string): string[];
export declare function embed(cssText: string, resourceURL: string, baseURL: string | null, options: Options, getContentFromUrl?: (url: string) => Promise<string>): Promise<string>;
export declare function shouldEmbed(url: string): boolean;
export declare function embedResources(cssText: string, baseUrl: string | null, options: Options): Promise<string>;