UNPKG

@readium/shared

Version:

Shared models to be used across other Readium projects and implementations in Typescript

31 lines (30 loc) 788 B
/** * https://readium.org/webpub-manifest/contexts/default/#text-and-data-mining */ export declare enum TDMReservation { all = "all", none = "none" } export declare class TDM { /** * Indicates whether the publication allows text and data mining. */ readonly reservation?: TDMReservation; /** * Additional policy information about text and data mining usage. */ readonly policy?: string; /** Creates a [TDM] object */ constructor(values: { reservation?: TDMReservation; policy?: string; }); /** * Parses a [TDM] from its RWPM JSON representation. */ static deserialize(json: any): TDM | undefined; /** * Serializes a [TDM] to its RWPM JSON representation. */ serialize(): any; }