import type { CSSProperties, ReactElement, ImgHTMLAttributes, ComponentType, SourceHTMLAttributes } from 'react';
import type { TransitionProps } from 'transitions-kit';
type PX = `${number}px`;
type RootMargin = `${PX} ${PX} ${PX} ${PX}` | `${PX} ${PX} ${PX}` | `${PX} ${PX}` | `${PX}`;
type ImageProps = Omit, 'height' | 'width'>;
export type SourceProps = Omit, 'src'> & {
srcSet: string;
};
export interface AsyncImageProps extends ImageProps {
src: string;
sources?: SourceProps[];
rootMargin?: RootMargin;
error?: ReactElement;
loader?: ReactElement;
timeout?: TransitionProps['timeout'];
objectFit?: CSSProperties['objectFit'];
Transition?: ComponentType;
}
export {};