import { Editor } from 'slate'; import { ITagRule } from '../types'; /** + * xml特殊字符转义 + * @param xml + */ export declare const xmlEscape: (xml: string) => string; export declare const filterEscape: (xml: string) => string; /** * xml转义字符还原 * @param xml */ export declare const xmlReverseEscape: (xml: string) => string; /** * 序列化 * @param value * @returns */ export declare const serialize: (value: any[], options?: { tagRules: Record; }) => string; /** * 获取xml格式字符串 * @returns */ export declare const getEditorText: (editor?: Editor | null, options?: { tagRules: Record; }) => string; export declare const transformVarText: (str: string) => string; /** + * xml的Dom对象转换成json对象 + * @param xmlObj + */ export declare const xmlObj2json: (xmlObj: Document) => any[]; /** * 反序列化 * @param text */ export declare const text2json: (text?: string) => any[]; export declare const wrapSpeakTag: (val?: string) => string; export declare const transformTagRules: (rules?: ITagRule[]) => Record;