about summary refs log tree commit diff stats
path: root/lib/epub.js/types/spine.d.ts
blob: 96a7ae9e7c1bc9566fd811d310be916fe33c5915 (plain) (blame)
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
31
32
33
34
import Packaging, { PackagingSpineItem } 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;

  spineItems: Section[];

  items: PackagingSpineItem[];

  private append(section: Section): number;

  private prepend(section: Section): number;

  private remove(section: Section): number;
}