UNPKG

take-shot

Version:
6 lines (5 loc) 495 B
export type FilterFontFace = (font: CSSStyleRule) => boolean; export declare function getWebFontCSS<T extends HTMLElement>(node: T, filterFontFace?: FilterFontFace): Promise<string | void>; export declare function embedWebFonts<T extends HTMLElement>(clonedNode: T, filterFontFace?: FilterFontFace): Promise<void>; export type CSSRuleSelector = (cssText: string) => boolean; export declare const injectCssRules: <T extends HTMLElement>(clonedNode: T, cssRuleSelector?: CSSRuleSelector) => void;