import type { ComponentType, SyntheticEvent } from 'react'; import type { ImageStyle, INativeUIEvent } from '@cleartrip/ct-design-types'; export interface IImageStyleConfig { root?: Omit[]; } export interface IImageWebRendererProps { src: string; alt: string; width?: number; height?: number; className?: string; onClick?: (e: INativeUIEvent) => void; onLoad?: () => void; onError?: (e: SyntheticEvent) => void; priority?: boolean; loading?: 'eager' | 'lazy'; blurDataURL?: string; unoptimized?: boolean; fetchPriority?: 'high' | 'low' | 'auto'; } export interface IImageProps { src: string; alt: string; width?: ImageStyle['width']; height?: ImageStyle['height']; fallbackUrl?: string; styleConfig?: IImageStyleConfig; onClick?: (event: INativeUIEvent) => void; onLoad?: () => void; onError?: (e: SyntheticEvent) => void; Component?: ComponentType; resizeMode?: 'contain' | 'cover' | 'stretch' | 'center'; priority?: boolean; loading?: 'eager' | 'lazy'; blurDataURL?: string; unoptimized?: boolean; fetchPriority?: 'high' | 'low' | 'auto'; fill?: boolean; zoomTransition?: boolean; } //# sourceMappingURL=type.d.ts.map