import { HTMLAttributes } from 'vue'; import { VLazyImgOptions } from '../directives/vLazyImg'; interface Source { srcset?: string; media?: string; } interface DataImage { sources?: Source[]; } export type MazImage = DataImage | string; export interface MazLazyImgProps { /** The style of the component */ style?: HTMLAttributes['style']; /** The class of the component */ class?: HTMLAttributes['class']; /** * The source of the image * @type {string | Image | null} */ src?: MazImage | null; /** The alt of the image */ alt?: string; /** Remove the loader */ hideLoader?: boolean; /** Remove the observer once the image is loaded */ observerOnce?: boolean; /** Remove the observer once the image is loaded */ loadOnce?: boolean; /** Make the image height full */ imageHeightFull?: boolean; /** The options of the observer */ observerOptions?: VLazyImgOptions['observerOptions']; /** The fallback src to replace the src on loading error */ fallbackSrc?: string; /** The classes of the image element */ imgClass?: HTMLAttributes['class']; /** The image will be displayed in full width */ block?: boolean; } declare function __VLS_template(): { attrs: Partial<{}>; slots: { default?(_: {}): any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: import('vue').DefineComponent any; loaded: (el: Element) => any; loading: (el: Element) => any; intersecting: (el: Element) => any; }, string, import('vue').PublicProps, Readonly & Readonly<{ onError?: ((el: Element) => any) | undefined; onLoaded?: ((el: Element) => any) | undefined; onLoading?: ((el: Element) => any) | undefined; onIntersecting?: ((el: Element) => any) | undefined; }>, { src: MazImage | null; style: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null; class: string | false | Record | import('vue').ClassValue[] | null; alt: string; observerOnce: boolean; observerOptions: { root?: HTMLElement | null; threshold: number; rootMargin?: string; }; fallbackSrc: string; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };