export declare enum SourceIntents { NONE = 0, /** * @deprecated use {@link CHAPTER_PROVIDING} */ MANGA_CHAPTERS = 1, CHAPTER_PROVIDING = 1, /** * @deprecated use {@link PROGRESS_PROVIDING} */ MANGA_PROGRESS = 2, /** * @deprecated use {@link PROGRESS_PROVIDING} */ MANGA_PROGRESS_PROVIDING = 2, PROGRESS_PROVIDING = 2, /** * @deprecated use {@link DISCOVER_SECTION_PROVIDING} */ DISCOVER_SECIONS = 4, /** * @deprecated use {@link DISCOVER_SECTION_PROVIDING} */ DISCOVER_SECIONS_PROVIDING = 4, DISCOVER_SECTION_PROVIDING = 4, /** * @deprecated use {@link MANAGED_COLLECTION_PROVIDING} */ COLLECTION_MANAGEMENT = 8, MANAGED_COLLECTION_PROVIDING = 8, /** * @deprecated use {@link CLOUDFLARE_BYPASS_PROVIDING} */ CLOUDFLARE_BYPASS_REQUIRED = 16, CLOUDFLARE_BYPASS_PROVIDING = 16, /** * @deprecated use {@link SETTINGS_FORM_PROVIDING} */ SETTINGS_UI = 32, SETTINGS_FORM_PROVIDING = 32, /** * @deprecated use {@link SEARCH_RESULT_PROVIDING} */ MANGA_SEARCH = 64, /** * @deprecated use {@link SEARCH_RESULT_PROVIDING} */ SEARCH_RESULTS_PROVIDING = 64, SEARCH_RESULT_PROVIDING = 64 } export interface SourceDeveloper { readonly name: string; readonly website?: string; readonly github?: string; } export interface SourceBadge { readonly label: string; readonly textColor: string; readonly backgroundColor: string; } /** * A content rating to be attributed to each source. */ export declare enum ContentRating { EVERYONE = "SAFE", MATURE = "MATURE", ADULT = "ADULT" } /** * @deprecated use {@link ExtensionInfo} */ export type SourceInfo = ExtensionInfo; export interface ExtensionInfo { /** * Required class variable which denotes the current version of the application. * This is what the application uses to determine whether it needs to update it's local * version of the source, to a new version on the repository */ readonly version: string; /** * The title of this source, this is what will show up in the application * to identify what Manga location is being targeted */ readonly name: string; /** * An INTERNAL reference to an icon which is associated with this source. * This Icon should ideally be a matching aspect ratio (a cube) * The location of this should be in an includes directory next to your source. * For example, the Paperback link sits at: sources/Paperback/static/icon.png * This {@link Source.icon} field would then be simply referenced as 'icon.png' and * the path will then resolve correctly internally */ readonly icon: string; /** * A brief description of what this source targets. This is additional content displayed to the user when * browsing sources. * What website does it target? What features are working? Etc. */ readonly description: string; /** * A content rating attributed to each source. This can be one of three values, and should be set appropriately. * Everyone: This source does not have any sort of adult content available. Each title within is assumed safe for all audiences * Mature: This source MAY have mature content inside of it. Even if most content is safe, mature should be selected even if a small subset applies * Adult: This source probably has straight up pornography available. * * This rating helps us filter your source to users who have the necessary visibility rules toggled for their profile. * Naturally, only 'Everyone' sources will show up for users without an account, or without any mode toggles changed. */ readonly contentRating: ContentRating; /** * The author of this source. The string here will be shown off to the public on the application * interface, so only write what you're comfortable with showing */ readonly developers: SourceDeveloper[]; /** * An optional field that defines the language of the extension's source */ readonly language?: string; /** * Little bits of metadata which is rendered on the website * under your repositories section */ readonly badges: SourceBadge[]; readonly capabilities: SourceIntents[] | SourceIntents; } //# sourceMappingURL=SourceInfo.d.ts.map