import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { ImageStatus, UseImageReturn } from "../../composables/useImage/index.mjs"; //#region src/components/Image/ImageRoot.vue.d.ts interface ImageRootProps extends AtomProps { /** Image source URL. Forwarded to Image.Img via context. */ src?: string; /** Defer loading until the root element intersects the viewport. */ lazy?: boolean; /** IntersectionObserver root margin. Only used when lazy is true. */ rootMargin?: string; /** * IntersectionObserver threshold(s). A number or array of numbers * between 0.0 and 1.0 indicating the percentage of the target's * visibility required to trigger the observer. Only used when lazy is true. */ threshold?: number | number[]; /** * IntersectionObserver root element. If omitted, the viewport is used. * Pass a scroll container to observe intersections relative to it instead. * Only used when lazy is true. */ root?: Element | null; /** Namespace for dependency injection. */ namespace?: string; } interface ImageRootSlotProps { /** Current loading status. */ status: ImageStatus; isIdle: boolean; isLoading: boolean; isLoaded: boolean; isError: boolean; /** Reset the image and re-attempt loading. */ retry: () => void; /** Attributes for the root element. */ attrs: { 'data-state': ImageStatus; }; } interface ImageContext extends UseImageReturn {} declare const useImageRoot: (key: string, defaultValue?: ImageContext | undefined) => ImageContext, provideImageRoot: (key: string, context: ImageContext, app?: import("vue").App) => ImageContext; declare const _default: typeof __VLS_export; declare const __VLS_export: __VLS_WithSlots & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { default: (props: ImageRootSlotProps) => any; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion export { ImageContext, ImageRootProps, ImageRootSlotProps, _default as default, provideImageRoot, useImageRoot };