/// import { DocBlock, EditorDoc } from "../doc"; export interface ExportState { listMaxInst: number; listInstMap: Record; listRefMap: Record; levelConfigs: any[]; inTable: boolean; inLayout: boolean; } export interface FontSizeConfig { normal?: number; heading1?: number; heading2?: number; heading3?: number; heading4?: number; heading5?: number; heading6?: number; heading7?: number; heading8?: number; } export declare enum BlockAlignment { LEFT = "left", RIGHT = "right", CENTER = "center" } export interface TextObject { box: any; inlineCode: boolean; bold: boolean; underline: boolean; italics: boolean; strike: boolean; superScript: boolean; subScript: boolean; mention: boolean; link: string | undefined; size: number | undefined; text: string | undefined; math: string | undefined; fontFamily: string | undefined; background: string | undefined; color: string | undefined; highlight: string | undefined; } export declare type ListBlock = { checkbox: string | undefined; groupId: string; ordered: boolean; level: number; start: number; }; export declare type ImageObject = { src: string; width: number; height: number; }; export declare type BlockObject = { quoted: boolean; heading: number | undefined; alignment: BlockAlignment | undefined; indent: number | undefined; padding: number | undefined; texts: TextObject[] | undefined; list: ListBlock | undefined; images: ImageObject[] | undefined; }; export declare type CalloutObject = { icon: string; backgroundColor: string; children: string[]; }; export declare type CodeObject = BlockObject[][]; export declare type ReadImageFunc = (appId: string, docId: string, image: string) => Promise; export declare type GetDocByBlockFunc = (appId: string, docId: string, block: DocBlock) => Promise; export declare type GetTextsByBoxFunc = (box: any) => Promise; export declare type MD5Func = (s: string) => string;