import { MangaTile } from '..'; export interface HomeSection { /** * An internal identifier of this HomeSection */ id: string; /** * The title of this section. * Common examples of HomeSection titles would be 'Latest Manga', 'Updated Manga', * 'Hot Manga', etc. */ title: string; /** * Type of the section * Defaults to HomeSectionType.singleRowNormal */ type?: HomeSectionType; /** * A list of {@link MangaTile} objects which should be shown under this section */ items?: MangaTile[]; /** * Should you be able to scroll, and view more manga on this section? * This method, when true, triggers the {@link Source.getViewMoreRequest} method * when the user tries to scroll further on the HomePage section. This usually means * that it will traverse to another page, and render more information */ view_more?: any; } export declare enum HomeSectionType { singleRowNormal = "singleRowNormal", singleRowLarge = "singleRowLarge", doubleRow = "doubleRow", featured = "featured" } declare global { function createHomeSection(section: HomeSection): HomeSection; }