about summary refs log tree commit diff stats
path: root/src/index.d.ts
blob: 1e6a8869d7dcd6911feaf2a43d8a58178512f979 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
declare interface EpubeApp {
    setPage(page: 'PAGE_LIBRARY' | 'PAGE_FAVORITES' | 'PAGE_READER' | 'PAGE_OFFLINE' | 'PAGE_LOGIN'): void;
    setTitle(title: string): void;
    showActionBar(visible: boolean): void;
    toggleActionBar(): void;
    isNightMode(): boolean;
    isOnline(): boolean;
    setStatusBarColor(r: number, g: number, b: number): void;
    setAccentColor(r: number, g: number, b: number): void;
    setOffline(offline: boolean): void;
}

declare interface DownloadFormat {
    format: string;
    id: number;
}

declare interface BookInfo {
    id: number;
    title: string;
    author_sort: string;
    series_name: string;
    series_index: number;
    cover_link: string;
    in_progress: boolean;
    is_read: boolean;
    is_fav: boolean;
    epub_id: number;
    download_formats: DownloadFormat[];
    comment: string;
    has_cover: boolean;
}

declare interface BookList {
    books: BookInfo[];
    total: number;
    offset: number;
    limit: number;
}

declare interface LastRead {
    cfi: string;
    page: number;
    total: number;
}

declare var EpubeApp: EpubeApp;

declare var localforage: LocalForage;

declare const BUILD_CACHE_VERSION: string;
declare const BUILD_MANIFEST_ASSETS: [];

declare const BUILD_VERSION: string;

declare var hyphenationPatternsEnUs;
declare var hyphenationPatternsRu;
declare var createHyphenator;