import { PrintOption, PrintPdfOption } from './types'; export declare const printContainerId = "ele-printer-container"; export declare const printFrameId = "ele-printer-iframe"; export declare const printingClass = "ele-printing"; /** * 创建并获取打印容器 */ export declare function getPrintContainer(): Element; /** * 打印 */ export declare function doPrint(option: PrintOption): void; /** * 在子窗口中打印 */ export declare function doPrintOnFrame(opt: PrintOption): Window | undefined; /** * 创建并获取打印子窗口 */ export declare function getPrintFrame(): HTMLIFrameElement; /** * 移除打印子窗口 */ export declare function removePrintFrame(): void; /** * 生成打印设置的样式 */ export declare function getOptionCss(opt: PrintOption): string; /** * 合并打印方法参数 * @param options 参数 * @param userOptions 自定义参数 */ export declare function mergeOptions(options?: any, userOptions?: any): any; /** * usePrinter */ export declare function usePrinter(done: () => void): { printId: string; }; /** * 打印 pdf * @param option 打印参数 */ export declare function printPdf(option: PrintPdfOption): void;