Files
epub2-static/epub.js
T
Timothy Carambat 9df68c0041 3.0.2 pin+patch
2025-11-26 17:06:27 -08:00

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