import { CSSProperties, HTMLAttributes, ReactNode } from 'react'; import { ImagePreviewProps, ImageType } from './preview.js'; import { ShapeType, SurfaceThemeType } from '../const/types.js'; export interface ImageRef { show: (props?: ImagePreviewProps) => void; destroy: () => void; togglePanel: () => void; } export interface ImageProps extends Omit, "onSwitch" | "defaultValue" | "defaultChecked"> { alt?: string; src?: string; type?: ImageType; origin?: string; height?: string | number; width?: string | number; placeholder?: string; data?: string[]; imgStyle?: CSSProperties; showPanel?: boolean; tools?: ReactNode; panel?: ReactNode; onClose?: () => void; onSwitch?: (index: number) => void; theme?: SurfaceThemeType; shape?: ShapeType; } declare const KImage: import('react').ForwardRefExoticComponent>; export default KImage;