import { default as ElDropdown } from '../ElDropdown.vue'; import { TextualValueType } from '../forms/input'; import { ElIconProps } from '../ElIcon.vue'; import { default as ElAvatar } from '../ElAvatar.vue'; import { ElTextCellColor, ElTextCellStyle } from '../ElTextCell.vue'; import { default as ElIconButton } from '../ElIconButton.vue'; import { default as ElButton } from '../ElButton.vue'; import { default as ElTag } from '../ElTag.vue'; export declare const dataCellTypes: readonly ["default", "tag", "action", "input"]; export type DataCellType = (typeof dataCellTypes)[number]; export type DataCell = TagCell | DefaultCell | ActionCell | InputCell; interface BasicDataCell { sortableAndFilterableValue?: string; type?: DataCellType; } export interface DefaultCell extends BasicDataCell { type?: 'default'; mainIcon?: ElIconProps; mainIconTooltip?: string; mainText: string; mainTextStyle?: ElTextCellStyle; mainTextColor?: ElTextCellColor; subIcon?: ElIconProps; subIconTooltip?: string; subText?: string; avatar?: Pick['$props'], 'picture' | 'label'>; clickAction?: (payload?: PointerEvent) => void; longText?: boolean; truncateSubText?: boolean; } export interface TagCell extends BasicDataCell { type?: 'tag'; tag: InstanceType['$props']; subText?: string; truncateSubText?: boolean; } export interface ActionCell extends BasicDataCell { type?: 'action'; buttons?: (InstanceType['$props'] & { id?: ID; })[]; iconButtons?: (InstanceType['$props'] & { id?: ID; })[]; dropdown?: InstanceType['$props'] & { disabled?: boolean; }; } export interface InputCell extends BasicDataCell { type?: 'input'; value?: string; onUpdate?: (value: TextualValueType) => void; } export declare const getCellText: (cell: DataCell) => string | null; export declare const getCellSortableAndFilterableValue: (cell: DataCell) => string; export declare const compareSortableValues: (a: string, b: string) => number; declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{ cell: DataCell; }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly>>, {}, {}>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; };