summaryrefslogtreecommitdiff
path: root/lib/epub.js/types/spine.d.ts
blob: 6cd59cedd9e0f6f8c55a4cba106e7e30513a58b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}