import { PagemarkType } from "./PagemarkType"; import { ISODateString, ISODateTimeString } from "./ISODateTimeStrings"; import { Backend } from "../datastore/Backend"; import { Tag } from "../tags/Tags"; import { UUID } from "./UUID"; import { Hashcode } from "./Hashcode"; import { ReadingOverview } from "./ReadingOverview"; import { IAttachment } from "./IAttachment"; import { Visibility } from "../datastore/Visibility"; import { IThumbnail } from "./IThumbnail"; import { IText } from "./Text"; import { IDocBibMutable } from "./IDocBib"; export declare type URLType = 'download' | 'landing'; export interface IDocInfo extends IDocBibMutable { nrPages: number; fingerprint: string; progress: number; pagemarkType: PagemarkType; title?: string; subtitle?: string; description?: string; url?: string; urlType?: URLType; lastOpened?: ISODateTimeString; lastUpdated?: ISODateTimeString; properties: { [id: string]: string; }; archived: boolean; flagged: boolean; backend?: Backend; filename?: string; added?: ISODateTimeString; tags?: { [id: string]: Tag; }; nrComments?: number; nrNotes?: number; nrFlashcards?: number; nrTextHighlights?: number; nrAreaHighlights?: number; nrAnnotations?: number; uuid?: UUID; hashcode?: Hashcode; bytes?: number; referrer?: string; shareStrategy?: ShareStrategy; storedResources?: Set; mutating?: DocMutating; published?: ISODateString | ISODateTimeString; readingPerDay?: ReadingOverview; visibility?: Visibility; attachments: { [id: string]: IAttachment; }; thumbnails?: { [id: string]: IThumbnail; }; summary?: IText; webCapture?: boolean; columnLayout?: number; } export declare type DocMutating = 'batch' | 'skip'; export declare type ShareStrategy = 'saved' | 'navigated'; export declare type StoredResource = 'link' | 'doc' | 'styles' | 'images' | 'fonts'; export interface Storage { readonly docFile: DiskUsage; readonly docMeta?: DiskUsage; } export interface DiskUsage { readonly bytesUsed: number; }