import type { ImageViewerAction } from "element-plus"; /** FaImage 的运行时 Props 定义 */ export declare const faImageProps: { /** when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode. */ hideOnClickModal: { type: BooleanConstructor; default: boolean; }; /** whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`. */ previewTeleported: { type: BooleanConstructor; default: boolean; }; /** whether to use lazy load. */ lazy: { type: BooleanConstructor; default: boolean; }; /** Base64图片 */ base64: BooleanConstructor; /** 原图 */ original: BooleanConstructor; /** 标准 */ normal: BooleanConstructor; /** 小图 */ small: BooleanConstructor; /** 缩略图 */ thumb: BooleanConstructor; /** 是否可以预览图片 */ preview: { type: BooleanConstructor; default: boolean; }; src: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; fit: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; loading: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; scrollContainer: { readonly type: import("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; }; previewSrcList: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>; zIndex: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; initialIndex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; infinite: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; zoomRate: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; scale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; minScale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; maxScale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; showProgress: BooleanConstructor; crossorigin: { readonly type: import("vue").PropType "" | "anonymous" | "use-credentials") | (() => import("element-plus").ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import("element-plus").ImageCrossorigin)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; }; /** FaImage 的运行时事件定义。 */ export declare const faImageEmits: { load: (evt: Event) => boolean; error: (evt: Event) => boolean; switch: (val: number) => boolean; close: () => boolean; show: () => boolean; }; /** FaImage 的插槽参数 */ export interface FaImageSlots extends Record { /** 当图像尚未加载时,自定义的占位符内容 */ placeholder: never; /** 自定义图像加载失败的内容 */ error: never; /** 当图像预览时自定义内容 */ viewer: { src?: string; }; /** 图片预览进度内容 */ progress: { activeIndex: number; total: number; }; /** 图片预览工具栏内容 */ toolbar: { actions: (action: ImageViewerAction, options?: Record) => void; prev: () => void; next: () => void; reset: () => void; activeIndex: number; setActiveItem: (index: number) => void; }; /** 图片预览加载失败内容 */ "viewer-error": { activeIndex: number; src: string; }; } declare const _default: import("vue").DefineComponent; fit: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; loading: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; scrollContainer: { readonly type: import("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; }; previewSrcList: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>; zIndex: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; initialIndex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; infinite: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; zoomRate: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; scale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; minScale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; maxScale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; showProgress: BooleanConstructor; crossorigin: { readonly type: import("vue").PropType "" | "anonymous" | "use-credentials") | (() => import("element-plus").ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import("element-plus").ImageCrossorigin)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; }>, { /** 手动打开图片预览。 */ showPreview: import("vue").ComputedRef<(() => void) | undefined>; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { load: (evt: Event) => boolean; error: (evt: Event) => boolean; switch: (val: number) => boolean; close: () => boolean; show: () => boolean; }, string, import("vue").PublicProps, Readonly; fit: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; loading: { readonly type: import("vue").PropType>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; scrollContainer: { readonly type: import("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; }; previewSrcList: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>; zIndex: { readonly type: import("vue").PropType; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; initialIndex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; infinite: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; zoomRate: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; scale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; minScale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; maxScale: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized; showProgress: BooleanConstructor; crossorigin: { readonly type: import("vue").PropType "" | "anonymous" | "use-credentials") | (() => import("element-plus").ImageCrossorigin) | (((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => import("element-plus").ImageCrossorigin)) | null)[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; }>> & Readonly<{ onError?: ((evt: Event) => any) | undefined; onSwitch?: ((val: number) => any) | undefined; onClose?: (() => any) | undefined; onLoad?: ((evt: Event) => any) | undefined; onShow?: (() => any) | undefined; }>, { small: boolean; fit: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; base64: boolean; original: boolean; normal: boolean; thumb: boolean; src: string; closeOnPressEscape: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; hideOnClickModal: boolean; previewTeleported: boolean; lazy: boolean; preview: boolean; previewSrcList: string[]; initialIndex: number; infinite: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType; zoomRate: number; scale: number; minScale: number; maxScale: number; showProgress: boolean; }, import("../../../utils").TypedSlotsDeclaration, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;