import { BasicsAttribute } from './attribute'; export declare class utility { static getLabelInOptions: (params: { value: string | boolean | string[]; options: any & { label: string; value: string | boolean; }[]; adaptor?: { label: string; value: string; children?: string; }; }) => any; static transformArrayToMap: (list: Record[], initKey: string | "autoGetId", initValue?: string, extra?: { useAutoGetId?: boolean; }) => any; static autoTableHeight: (num?: number) => number; static renderBomTag: (text: string) => any; static tidyBomTag: (text: string, onExceedWarning?: () => void) => string; static getAttrOf(attrs: BasicsAttribute[], apiCode: T): BasicsAttribute | undefined; static avoid0TypeConvert(value: any): any; static generateUUID(): string; static momentToRawData(data: any): any; /** 获取 table row 某个属性的值 (可以通过`config.type`去配置获取的值是新的还是旧的) */ /** table row 数据是否是有被修改过 */ static tableRowHasChange(row: any): boolean; /** table row 数据是否有newVal(被修改)*/ static tableRowHasNewValue(row: any): boolean; /** table row 数据是否是新增数据 */ static isAddTableRow(row: any): boolean; /** table row 数据是否是删除数据 */ static isDelTableRow(row: any): boolean; /** 设置table row值 */ static setTableRowAttrValue(row: any, newVal: any): void; static isMac(): boolean; static makeDestructurable, A extends readonly [any, ...any]>(obj: T, arr: A): T & A; /** 数组对象扁平化 (返回的数据顺序与 antd table tree 相同,有使用的地方依赖这个顺序) */ static ArrayAttributeFlat>(params: T[], attr?: string, fn?: (item: T) => void): T[]; static getTreeRelationNoRecursion({ data, lookup, childrenKey, }: { data: T[]; lookup: (item: T, index: number) => boolean; childrenKey?: string; }): OnChainProject.Relation; static judgeParentIcon(itemCode: string, icon?: string): string | undefined; static generateCacheFn(fn: (...params: Params[]) => Result): Required, "_value">>> & BasicsFn; static generateSnowId(): string; }