import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js"; import "../../../utils/index.js"; import { _default } from "./image.vue.js"; import * as vue from "vue"; import { ExtractPublicPropTypes } from "vue"; //#region ../../packages/components/image/src/image.d.ts type ImageFitType = '' | 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; type ImageCrossorigin = 'anonymous' | 'use-credentials' | ''; interface ImageProps { /** * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode. */ hideOnClickModal?: boolean; /** * @description image source, same as native. */ src?: string; /** * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit). */ fit?: ImageFitType; /** * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#loading) */ loading?: 'eager' | 'lazy'; /** * @description whether to use lazy load. */ lazy?: boolean; /** * @description the container to add scroll listener when using lazy load. */ scrollContainer?: string | HTMLElement; /** * @description allow big image preview. */ previewSrcList?: string[]; /** * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`. */ previewTeleported?: boolean; /** * @description set image preview z-index. */ zIndex?: number; /** * @description initial preview image index, less than the length of `url-list`. */ initialIndex?: number; /** * @description whether the viewer preview is infinite. */ infinite?: boolean; /** * @description whether the image-viewer can be closed by pressing ESC. */ closeOnPressEscape?: boolean; /** * @description the zoom rate of the image viewer zoom event */ zoomRate?: number; /** * @description preview image scale. */ scale?: number; /** * @description the min scale of the image viewer zoom event. */ minScale?: number; /** * @description the max scale of the image viewer zoom event. */ maxScale?: number; /** * @description show preview image progress content. */ showProgress?: boolean; /** * @description set HTML attribute: crossorigin. */ crossorigin?: ImageCrossorigin; } /** * @deprecated Removed after 3.0.0, Use `ImageProps` instead. */ declare const imageProps: { readonly hideOnClickModal: BooleanConstructor; readonly src: EpPropFinalized; readonly fit: EpPropFinalized; readonly loading: { readonly type: vue.PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly lazy: BooleanConstructor; readonly scrollContainer: { readonly type: vue.PropType string | HTMLElement) | (() => string | HTMLElement | undefined) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement | undefined)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly previewSrcList: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>; readonly previewTeleported: BooleanConstructor; readonly zIndex: { readonly type: vue.PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; readonly initialIndex: EpPropFinalized; readonly infinite: EpPropFinalized; readonly closeOnPressEscape: EpPropFinalized; readonly zoomRate: EpPropFinalized; readonly scale: EpPropFinalized; readonly minScale: EpPropFinalized; readonly maxScale: EpPropFinalized; readonly showProgress: BooleanConstructor; readonly crossorigin: { readonly type: vue.PropType "" | "anonymous" | "use-credentials") | (() => ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => ImageCrossorigin)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; }; /** * @deprecated Removed after 3.0.0, Use `ImageProps` instead. */ type ImagePropsPublic = ExtractPublicPropTypes; declare const imageEmits: { load: (evt: Event) => boolean; error: (evt: Event) => boolean; switch: (val: number) => boolean; close: () => boolean; show: () => boolean; }; type ImageEmits = typeof imageEmits; type ImageInstance = InstanceType & unknown; //#endregion export { ImageCrossorigin, ImageEmits, ImageFitType, ImageInstance, ImageProps, ImagePropsPublic, imageEmits, imageProps };