securityos/node_modules/html-to-image/es/index.d.ts

9 lines
776 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import { Options } from './types';
export declare function toSvg<T extends HTMLElement>(node: T, options?: Options): Promise<string>;
export declare function toCanvas<T extends HTMLElement>(node: T, options?: Options): Promise<HTMLCanvasElement>;
export declare function toPixelData<T extends HTMLElement>(node: T, options?: Options): Promise<Uint8ClampedArray>;
export declare function toPng<T extends HTMLElement>(node: T, options?: Options): Promise<string>;
export declare function toJpeg<T extends HTMLElement>(node: T, options?: Options): Promise<string>;
export declare function toBlob<T extends HTMLElement>(node: T, options?: Options): Promise<Blob | null>;
export declare function getFontEmbedCSS<T extends HTMLElement>(node: T, options?: Options): Promise<string>;