export declare abstract class GalleryItem { /** * Media url */ src: string; /** * Url of media thumbnail */ thumbSrc: string; /** * Alt text for not yet loaded image */ alt: string; /** * Description that is to be shown on the currently displayed gallery item */ description: string; /** * Custom data where you can put whatever you want */ data: any; constructor( /** * Media url */ src: string, /** * Url of media thumbnail */ thumbSrc: string, /** * Alt text for not yet loaded image */ alt: string, /** * Description that is to be shown on the currently displayed gallery item */ description: string, /** * Custom data where you can put whatever you want */ data: any); } /** * The whole interface mirrors attributes from the WHATWG spec. */ export interface PictureSource { /** * src URL */ srcset: string; /** * CSS media selector */ media?: string; /** * Give hint to browser which src from srcset to pick */ sizes?: string; /** * MIME media type */ type?: string; } export declare class GalleryImage extends GalleryItem { /** * Sources for */ pictureSources?: PictureSource[]; constructor(src: any, thumbSrc?: any, alt?: any, description?: any, /** * Sources for */ pictureSources?: PictureSource[], data?: any); } export declare class GalleryVideo extends GalleryItem { constructor(src: any, thumbSrc?: any, alt?: any, description?: any, data?: any); } export interface GalleryItemEvent { /** * Index of the item */ index: number; item: GalleryItem; /** * DOM event */ event: Event; } export interface GalleryItemInternal extends GalleryImage, GalleryVideo { /** * Marks item as loaded once its media gets loaded */ _loaded?: boolean; /** * `true` when media couldn't be loaded */ _failed?: boolean; /** * `true` when thumbnail couldn't be loaded */ _thumbFailed?: boolean; } export declare const isVideo: (item: GalleryItem) => boolean;