///
/**
* html转换为excel
* @param html 需转换的内容
* @param attachment 文件名称
* @example html2pdf(html, attachment);
*/
export default function html2pdf(html: string, attachment?: string, rootpath?: string): Promise<{
attachment: string;
buff: Buffer;
content_type: string;
} | {
buff: Buffer;
content_type: string;
attachment?: undefined;
}>;