import { FIELD_TYPES, PATTERN_TYPES } from 'med-dynamic-form';
import { CELL_TYPES } from './cellTypes';
import { FILTER_TYPES } from './filterTypes';
/**
 * Should use object dot notation.
 * Fail: obj.el[1].name
 * Success: obj.el.1.name
 */
export interface MedTableColumnConfig {
    key?: string;
    label: string;
    sortKey?: string;
    hideSortIcon?: boolean;
    headCellClass?: string;
    dataCellClass?: (data: any) => string;
    defaultValue?: any;
    minWidth?: string;
    maxWidth?: string;
    filterable?: boolean;
    filterType?: FILTER_TYPES;
    editorType?: FIELD_TYPES;
    sticky?: 'left' | 'right';
    cellType?: CELL_TYPES;
    linkOptions?: {
        url: string;
        keyParam?: string;
        target?: string;
    };
    pattern?: PATTERN_TYPES;
    hideExport?: boolean;
    inputMask?: string;
    visibleEditorHandler?: (data: any) => boolean;
    viewHandler?: (data: any) => any;
    children?: MedTableColumnConfig[];
}
