///
import { IImageOptions } from 'docx';
import { EditorDoc } from "./doc";
import { FontSizeConfig, GetDocByBlockFunc, GetTextsByBoxFunc, MD5Func, ReadImageFunc } from "./doc2other/types";
export declare class ToDocX {
private readonly templateData;
private readonly docData;
private readonly md5HexFunc;
private readonly readImage;
private readonly defaultFontSize?;
private readonly getDocByBlock?;
private readonly getTextsByBox?;
private readonly backgroundImageOptions?;
constructor(templateData: Buffer | undefined, docData: EditorDoc, md5HexFunc: MD5Func, readImage: ReadImageFunc, defaultFontSize?: FontSizeConfig | undefined, getDocByBlock?: GetDocByBlockFunc | undefined, getTextsByBox?: GetTextsByBoxFunc | undefined, backgroundImageOptions?: IImageOptions | undefined);
convert(appId: string, docId: string): Promise;
private snapshot2docx;
private convertBlocks;
}
export interface Doc2DocxOptions {
appId: string;
docId: string;
template?: Buffer;
data: EditorDoc;
defaultFontSize?: FontSizeConfig;
md5: (s: string) => string;
readImage: ReadImageFunc;
getDocByBlock?: GetDocByBlockFunc;
getTextsByBox?: GetTextsByBoxFunc;
}
export declare function doc2docx(options: Doc2DocxOptions): Promise;
export type { IImageOptions };