import { BasicsAttribute } from '../../utils/attribute'; import { OnChainColumn } from '.'; import { contentProps } from '../OnChainFormItem'; import { OnChainTableFormItemProps } from './OnChainTableFormItem'; interface tabInfoProps { itemCode: string | number; tabCode: string | number; tabName: string; tab: string; extValue?: any; } declare class TableUtils { static isDayjs(value: any): value is { format(template?: string): string; [k: string]: any; }; static getTrulyHighlight: ({ formitem, highlight, }: { formitem: OnChainTableFormItemProps["formprops"]; highlight?: string[]; }) => { trulyHighlight: any; needTransform: boolean; }; static wrapperHighLight: ({ highlight, formitem, value, originValue, }: { originValue: any; highlight?: string[]; formitem: contentProps; value: string; }) => string | import("react/jsx-runtime").JSX.Element; static renderCacheCell: (row: Record, dataIndex: string, formitem: contentProps, customRender?: (data: any) => any, options?: { highlight?: string[]; }) => import("react/jsx-runtime").JSX.Element; static renderReadonlyItem: ({ apicode, formitem, value, record, }: { apicode?: string; formitem: contentProps; value: string | any[]; record?: Record; }) => any; static renderRowClassName: (record: Record) => string; static renderVersionColumn: (value: string, highlight?: string[]) => import("react/jsx-runtime").JSX.Element; static avoid0TypeConvert(value: any): any; static isEqual(old: any, value: any): any; static getCellSignState(row: Record, dataIndex: string): { hasOptType: boolean; hasInProcess: any; hasNewValue: any; }; static getRowSignState(row: Record, handleCellIsEq?: (type: 'newVal' | 'inProcess', dataIndex: string, isEq: boolean, latestValue: any, oldValue: any) => void): { hasOptType: boolean; hasInProcess: boolean; hasNewValue: boolean; }; static isEmptyValue(latest: any): any; static sortAndFilterTable(params: { sorters: string; filters: string; sortersField: string; /** 前端处理后的 columns */ tableColumns: OnChainColumn[]; /** 版次记录页签、历史记录页签 需要该属性进行额外处理 */ tabInfo?: Partial; /** 服务端原始属性(版次记录页签需要该属性进行额外处理)*/ originTableColumns?: BasicsAttribute[]; }): { sorters: string; filters: string; sortersField: string; }; static monitoringCol(box: Element, columnWidth?: number | string): () => void; static getFixAttrFilterOrSortInfo({ filterOrSort, attrs, }: { filterOrSort: string; attrs: BasicsAttribute[]; }): { apicode: string; id: string; attr: BasicsAttribute; filterOrSortValue: any; prefix: string; value: string; } | undefined; } export default TableUtils;