import { Dayjs } from 'dayjs'

export type RangeValue = [string, string] | [number, number] | [null, null]

export interface Props {
  modelValue: RangeValue

  
  borderType?: 'underline' | 'bordered' | 'none'

  
  width?: string

  
  disabled?: boolean

  
  isView?: boolean

  
  error?: boolean

  
  errorLabel?: string

  
  placeholder?: any

  
  size?: 'large' | 'medium' | 'table'

  
  errorMode?: 'default' | 'overlay'

  
  errorModelZIndex?: number
}

export interface Emits {
  (e: 'update:modelValue', currValue: RangeValue): void

  
  (e: 'change', currValue: RangeValue): void

  (e: 'update:error', currValue: boolean): void

  
  (e: 'show-popover'): void
}
