import type { VNode, Component } from 'vue'
export interface MessageBoxProps {
  title?: string
  message?: string | (() => VNode) | Component
  confirmText?: string
  cancelText?: string
  width?: string | number
  loading?: boolean
  type?: 'primary' | 'warning' | 'danger'
  showCancelButton?: boolean
  showConfirmButton?: boolean
  validate?: () => Promise<string | number> | null
  mousePosition: { x: number; y: number }
}
