mirror of
https://github.com/Mintplex-Labs/epub2-static.git
synced 2026-07-01 16:04:13 -04:00
44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
"use strict";
|
|
const epub_1 = require("./lib/epub");
|
|
module.exports = epub_1.EPub;
|
|
/*
|
|
// @ts-ignore
|
|
declare module "epub"
|
|
{
|
|
|
|
import { EventEmitter } from "events";
|
|
|
|
interface TocElement
|
|
{
|
|
level: number;
|
|
order: number;
|
|
title: string;
|
|
id: string;
|
|
href?: string;
|
|
}
|
|
|
|
class EPub extends EventEmitter
|
|
{
|
|
constructor(epubfile: string, imagewebroot?: string, chapterwebroot?: string);
|
|
|
|
metadata: Object;
|
|
manifest: Object;
|
|
spine: Object;
|
|
flow: Array<Object>;
|
|
toc: Array<TocElement>;
|
|
|
|
parse(): void;
|
|
|
|
getChapter(chapterId: string, callback: (error: Error, text: string) => void): void;
|
|
|
|
getChapterRaw(chapterId: string, callback: (error: Error, text: string) => void): void;
|
|
|
|
getImage(id: string, callback: (error: Error, data: Buffer, mimeType: string) => void): void;
|
|
|
|
getFile(id: string, callback: (error: Error, data: Buffer, mimeType: string) => void): void;
|
|
}
|
|
|
|
export = EPub;
|
|
}
|
|
*/
|
|
//# sourceMappingURL=epub.js.map
|