declare namespace NaiveUI { type ThemeColor = 'default' | 'error' | 'primary' | 'info' | 'success' | 'warning'; type Align = 'stretch' | 'baseline' | 'start' | 'end' | 'center' | 'flex-end' | 'flex-start'; type DataTableBaseColumn = import('naive-ui').DataTableBaseColumn; type DataTableExpandColumn = import('naive-ui').DataTableExpandColumn; type DataTableSelectionColumn = import('naive-ui').DataTableSelectionColumn; type TableColumnGroup = import('naive-ui/es/data-table/src/interface').TableColumnGroup; type TableColumnCheck = import('@sa/hooks').TableColumnCheck; type SetTableColumnKey = Omit & { key: keyof T | (string & {}) }; type TableColumnWithKey = SetTableColumnKey, T> | SetTableColumnKey, T>; type TableColumn = TableColumnWithKey | DataTableSelectionColumn | DataTableExpandColumn; /** * the type of table operation * * - add: add table item * - edit: edit table item */ type TableOperateType = 'add' | 'edit'; }