mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
30 lines
557 B
TypeScript
30 lines
557 B
TypeScript
import Packaging from "./packaging";
|
|
import Section from "./section";
|
|
import Hook from "./utils/hook";
|
|
|
|
export default class Spine {
|
|
constructor();
|
|
|
|
hooks: {
|
|
serialize: Hook,
|
|
content: Hook
|
|
};
|
|
|
|
unpack(_package: Packaging, resolver: Function, canonical: Function): void;
|
|
|
|
get(target?: string | number): Section;
|
|
|
|
each(...args: any[]): any;
|
|
|
|
first(): Section;
|
|
|
|
last(): Section;
|
|
|
|
destroy(): void;
|
|
|
|
private append(section: Section): number;
|
|
|
|
private prepend(section: Section): number;
|
|
|
|
private remove(section: Section): number;
|
|
}
|