export type ToastType = {
  message?: string
  icon?: any
  iconSize?: number | string
  overlay?: boolean
  overlayNeed?: boolean
  closeOnClickOverlay?: boolean
  duration?: number | string,
  color?: string,
  id?: number,//唯一标识
  position?:"middle" | "top" | "bottom"
  loading?:boolean
}
export type ToastList = {
  [key in any]:ToastType
}
export type VisibleToastsType = {
  [key in string]: boolean;
}
export type ToastContextType = {
  toastList: any,
  visibleToasts: VisibleToastsType,
  setToast: (props: ToastType) => any// todo 暂时用any代替 深入调整后在换
  hideToast: (id:any) => void,
  hideAll:()=>void,
  loading:(props: ToastType) => any
}