import { XmlData } from './ofdData';
import { OfdDocument } from './ofdDocument';
import { default as PromiseCapability } from './promiseCapability';
export declare const RootDocPath = "Doc_0";
export declare const unzipOfd: (file: ArrayBuffer) => Promise<import("jszip") | null>;
export declare const parseXmlByXmlString: (xmlStr: string, fileName: string) => Promise<XmlData>;
/**
 * 解析ofd的所有的page，页面
 * @param ofdDocument 整体文档
 * @param pages 页面的数据，是个数组
 */
export declare const parseOFDPages: (ofdDocument: OfdDocument, pages: XmlData) => Promise<XmlData[]>;
export declare const parseOFDOutlines: (ofdDocument: OfdDocument, outlinesObj: XmlData) => Promise<void>;
/**
 * 根据文件来解析xml
 * @param files
 * @param fileName
 */
export declare const parseXmlByFileName: (files: any, fileName: string) => Promise<XmlData>;
export declare const findValueByTagName: (xmlData: XmlData, tagName: string) => XmlData | undefined;
export declare const findValueByTagNameOfFirstNode: (xmlData: XmlData, tagName: string) => XmlData | undefined;
/**
 * 查找所有节点包含子节点的方法
 * @param xmlData 要搜索的XML数据
 * @param tagName 要查找的标签名
 * @returns 包含所有匹配节点的数组
 */
export declare const findAllNodesByTagName: (xmlData: XmlData, tagName: string) => XmlData[];
/**
 * 根据tagname查找所有的子节点
 * @param xmlData
 * @param tagName
 */
export declare const findNodeListByTagName: (xmlData: XmlData, tagName: string) => XmlData[];
export declare const findAttributeValueByKey: (xmlData: XmlData, key: string) => any;
export declare const findFirstAttributeValueByKey: (xmlData: XmlData, key: string) => any;
export declare const setAttributeToNode: (node: XmlData, key: string, value: string) => void;
/**
 * 根据id查找节点，可能是单节点，可能多节点
 */
export declare const findNodeByAttributeKeyValue: (targetValue: any, attrKey: string, node: XmlData) => XmlData | undefined;
/**
 * 根据id查找节点，可能是单节点，可能多节点，从列表里面面查找
 */
export declare const findNodeByAttributeKeyValueInList: (targetValue: any, attrKey: string, nodeList: XmlData[]) => XmlData | undefined;
/**
 * 根据tagName来查找具体的targetValue值，因为像ofd:Fonts可能存在多个节点，需要再publiicRes中去查找对应的值
 */
export declare const findNodeByAttributeKeyValueWithTagName: (targetValue: any, attrKey: string, node: XmlData, tagName: string) => XmlData | undefined;
export declare const parseOFDFile: (file: string | File | ArrayBuffer) => PromiseCapability<OfdDocument>;
/**
       * 解析OFD文件二进制数据
       * @param file
       * @param promiseCap
       */
export declare const parseFileByArrayBuffer: (file: File | ArrayBuffer, promiseCap: PromiseCapability<OfdDocument>) => Promise<void>;
