import { CascadeOption, CascadeOptions, ColumnType, DateOptions, NumberOptions, TableColumn } from "../Column"; import { CellValue, NumberValue } from "../Cell"; import type { User } from "../Base"; import { validFilter, validFilterOperator, validFilterValue } from "./validCellVlaue"; import { IdPrefix } from "../Constant"; import { RowData } from "../Record"; import { Sorts } from "../View"; export declare const getValueByPath: (object: any, prop: string[]) => any; export declare function setValueByPath(obj: any, value: any, _path: string): void; export declare const isEmptyValue: (v: any) => boolean; export declare const getColumnType: (column: Pick, config?: { lookup: boolean; }) => ColumnType; export declare const getSubfix: (h: number) => string; export declare function formatTime(typeOptions: DateOptions, dateVal: string): string; /** * @description: 根据type和单元格数据获取最终展示的文本string * @param {Field} column * @param {any} data * @return {*} */ export declare const getCellDisplayText: (params: { column: Pick; userInfoById: Record>; attachmentOptions?: { name?: boolean; url?: boolean; }; }, data: CellValue) => string; export declare const replaceMentionName: (text: string, userInfoById?: Record>) => string; export declare const formatNumber: (typeOptions: NumberOptions, v: NumberValue) => string; export default function resolvePath(pathA?: string, pathB?: string): string; export declare function fastFormatTime(typeOptions: DateOptions, dateVal: string): string; export declare const formatFieldFromString: (newField: Pick, arr: string[], oldField?: Pick) => Pick; export declare function createNanoidSync(prefix: string): string; export declare const getNewColor: (colorList: string[], options?: { from?: string[]; }) => string; export declare function isDarkColor(color?: string): boolean; export declare function isLightColor(color?: string): boolean; export declare const sortRecords: (rows: RowData[], config: { userInfoById: Record>; columns: TableColumn[]; sorts: Sorts; }) => RowData[]; export declare function getSortableCellValue(params: { column: Pick; userInfoById: Record>; }, _data: CellValue): string; export declare const getOptionsFromObj: (obj: any, level: number, list: CascadeOption[], { titles, parentId, }: { titles: CascadeOptions["titles"]; parentId?: string; }) => CascadeOption[]; export declare const getNewUnrepeatedName: (name: string, existNames: string[]) => string; export { validFilter, validFilterOperator, validFilterValue }; export declare const isValidId: (idPrefix: IdPrefix, vid: string) => boolean; export declare const getCellSearchableText: (params: { column: Pick; userInfoById: Record>; withAttachmentUrl?: boolean; }, data: CellValue) => string;