import type {StyleValue, TdHTMLAttributes, ThHTMLAttributes} from 'vue'
import {ColorVariant, LiteralUnion} from '.'
export interface TableFieldObject> {
key: LiteralUnion
label?: string
headerTitle?: string
headerAbbr?: string
class?: string | string[]
formatter?: string | ((value: unknown, key?: string, item?: T) => string)
sortable?: boolean
sortKey?: string
sortDirection?: string
sortByFormatted?: boolean
filterByFormatted?: boolean
tdClass?: string | string[]
thClass?: string | string[]
thStyle?: StyleValue
variant?: ColorVariant
tdAttr?: TdHTMLAttributes
thAttr?: ThHTMLAttributes
isRowHeader?: boolean
stickyColumn?: boolean
}
/**
* @external
*/
type TableField> = string | TableFieldObject
export default TableField