import type { CSSProperties } from 'react'; /** * Props for the image wrapper with loading/error handling. */ interface ImageProps { alt: string; src: string; style?: CSSProperties | null; className?: string | string[] | null; onLoad?: () => void; onError?: () => void; } /** * Renders an image with a spinner while loading and hides on error. */ declare function Image({ alt, src, style, className, onLoad, onError, }: ImageProps): import("react/jsx-runtime").JSX.Element; export { Image }; /** * @deprecated Use named import instead: `import { Image } from './image'`. * Default export will be removed in the next major version. */ export default Image;