import * as i0 from '@angular/core'; declare class NcHtml2canvasServiceModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } type NcImageType = 'canvas' | 'base64' | 'blob'; type NcHtml2canvasResult = HTMLCanvasElement | string | Blob | null; interface NcHtml2canvasOptions { type?: NcImageType; scale?: number; backgroundColor?: string; } declare class NcHtml2canvasService { private readonly document; /** * 截图 * @param dom 要截图的DOM元素 * @param options 截图配置 * @param options.type 输出图片的类型,NcImageType,可选值:'canvas' | 'base64' | 'blob',默认值:'canvas' * @param options.scale 输出图片的缩放比例,值越大清晰度越高,默认值:1 * @param options.backgroundColor 输出图片的背景颜色,默认值:'white' * @returns 根据type返回不同类型: * - 'canvas': 返回 HTMLCanvasElement * - 'base64': 返回 base64 字符串 * - 'blob': 返回 Blob 对象 */ html2canvas(dom: HTMLElement, options?: NcHtml2canvasOptions): Promise; private getScreenScale; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { NcHtml2canvasService, NcHtml2canvasServiceModule }; export type { NcHtml2canvasOptions, NcHtml2canvasResult, NcImageType };