///
/**
* html转换为pdf
* @param html 需转换的html内容
* @param orientation 版式,横版、竖版
* @param attachment 文件名称-可选参数
* @example html2pdf(html, orientation, attachment, rootpath, width, height);
*/
export default function html2pdf(html: string, orientation: 'portrait' | 'landscape', attachment?: string, rootpath?: string, width?: string, height?: string): Promise<{
attachment: string;
buff: Buffer;
content_type: string;
} | {
buff: Buffer;
content_type: string;
attachment?: undefined;
}>;