import type { EditorPluginConfig, ViewerPluginConfig } from 'wix-rich-content-common'; export declare const IMAGE_TYPE = "wix-draft-plugin-image"; export declare const IMAGE_TYPE_LEGACY = "IMAGE"; export type ImageEditorWixSettings = { initiator: string; siteToken: string; metaSiteId: string; mediaRoot: string; }; export interface ImageConfig { size?: string; alignment?: string; showTitle?: boolean; showDescription?: boolean; link?: { anchor: unknown; url: string; }; width?: number; textWrap?: string; spoiler?: SpoilerConfig; } type SpoilerConfig = { buttonContent?: string | undefined; description?: string | undefined; enabled: boolean | undefined; }; export interface ImagePluginEditorConfig extends EditorPluginConfig, ImageConfig { [key: string]: any; disableDownload?: boolean; disableExpand?: boolean; imageEditorWixSettings?: ImageEditorWixSettings; onImageEditorOpen?: () => void; spoiler?: SpoilerConfig; defaultData?: { config?: ImageConfig; disableExpand?: boolean; }; imageProps?: HTMLImageElement; createGalleryForMultipleImages?: boolean; imageEditor?: boolean; consumer?: string; } type ImageSrc = Record; export interface ImagePluginViewerConfig extends ViewerPluginConfig, ImageConfig { onExpand?: (blockkey: string) => unknown; disableExpand?: boolean; disableTransition?: boolean; imageProps?: ((src: ImageSrc) => HTMLImageElement) | HTMLImageElement; } export interface ImageData { config: ImageConfig; src: { fallback?: string; width: number; height: number; id?: string; file_name?: string; }; metadata?: { caption?: string; alt?: string | undefined; }; [key: string]: unknown; disableDownload?: boolean; disableExpand?: boolean; } export interface TiptapImageData { containerData: { alignment?: string; width?: { size?: string; }; textWrap?: boolean; spoiler?: SpoilerConfig; }; link?: any; disableExpand?: boolean; disableDownload?: boolean; caption?: string; altText?: string; image: { src: { id?: string; }; width: number; height: number; }; } export type ExtendedBlob = Blob & { lastModified: number; name: string; webkitRelativePath: string; }; export {}; //# sourceMappingURL=types.d.ts.map