/** * Defines the data type holding `container.xml` data which * is returned from {@link readContainerXml}. * * Note that `containerXml` is marked as `any`. This is because * the `@xmldom/xmldom` does not export the internal class, `Document`, * which is returned by `parseFromString`. */ export declare type ContainerXMLData = { containerXmlText: string; containerXml: any; }; /** * Reads the `container.xml` file from the EPUB directory. * * @param epubDir The path name of the directory * @returns A simple object ({@link ContainerXMLData}) describing the `container.xml` data */ export declare function readContainerXml(epubDir: string): Promise; export declare type RootFileData = { fullpath: string; mime: string; }; /** * From the `container.xml` file, look for any `rootfile` elements, returning * a descriptive object ({@link RootFileData}) for each. * * @param containerXml The _Document_ of the `container.xml` file * @returns An array of {@link RootFileData} objects */ export declare function findRootfiles(containerXml: any): any[]; export declare function findOpfFileName(containerXml: any): any; declare type OPFData = { opfXmlText: string; opfXml: any; }; /** * Reads the OPF file from the EPUB, parsing it to an XML Document. * * @param epubDir The directory where the EPUB files are stored * @param opfName The file name of the OPF file * @returns An object ({@link OPFData}) for the OPF file */ export declare function readOPF(epubDir: string, opfName: string): Promise; export declare type XHTMLData = { xhtmlText: string; xhtmlDOM: any; }; /** * Reads the XHTML file, returning an object ({@link XHTMLData}) containing * the text which was read, and the parsed XML Document. * * @param epubDir The directory for the EPUB data * @param xhtmlName The file name for the file to read * @returns An object ({@link XHTMLData}) containing data read from the file */ export declare function readXHTML(epubDir: string, xhtmlName: string): Promise; export {}; //# sourceMappingURL=metadata.d.ts.map