import Handsontable from 'handsontable'

export interface HotColumnSettings extends Handsontable.ColumnSettings {
  data: string
}

export interface DcColumnSettings {
  length?: number
  format?: number
  valid?: boolean
  desc?: string
  clsRule?: string
  // SAS-side column type from $dataFormats (e.g. 'num', 'char') — distinct
  // from Handsontable's `type` which drives renderer/editor selection
  sasType?: string
}

export interface DcValidation extends HotColumnSettings, DcColumnSettings {}

export interface DcValidationRuleUpdate
  extends Handsontable.ColumnSettings, DcColumnSettings {
  data?: string
}
