import { OSSImgConfig } from '../common/interface';

type ImageValue = string | Array<string | ImageParams>;

export interface ImageParams {
  src: string;
  alt?: string;
}

export interface ImageStyleProps {
  length: string;
  [propsName: string]: any;
}

export interface YImageProps {
  value: ImageValue;
  alt?: string;
  classname?: string;
  styles?: object;
  ossImgConfig?: OSSImgConfig;
  modalProps?: { [propsName: string]: any };
}
