import type { ImageEvent, TNode } from '../common';
export interface TdImageProps {
    alt?: string;
    error?: string | TNode;
    fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
    gallery?: boolean;
    lazy?: boolean;
    loading?: string | TNode;
    overlayContent?: string | TNode;
    overlayTrigger?: 'always' | 'hover';
    placeholder?: string | TNode;
    position?: string;
    shape?: 'circle' | 'round' | 'square';
    src?: string;
    srcset?: ImageSrcset;
    onError?: (context: {
        e: ImageEvent;
    }) => void;
    onLoad?: (context: {
        e: ImageEvent;
    }) => void;
}
export interface ImageSrcset {
    'image/avif': string;
    'image/webp': string;
}
