import { D3SvgNodeType, TyCustomeField, TyChildField, TyFlowInstDsType, TyRewordTreeRes, TyRewordTreeArg, TyFoldChildReworkArg, D3SvgLineType } from "../type"; export declare const isShowByRuleVisible: (visibleAttr: boolean | ((d: D3SvgNodeType) => boolean) | undefined, d: D3SvgNodeType) => boolean; export declare const valByCustomVal: (customVal: string | number | ((d: D3SvgNodeType) => string | number) | undefined, d: D3SvgNodeType, initVal: string) => string | number; export declare const foldNameByCustomVal: (customVal: string | number | ((otherChildren: TyCustomeField[]) => string | number) | undefined, otherChildren: TyCustomeField[], initVal: string) => string | number; export declare const roundToZero: (number: number) => number; export declare const numT: (num?: number) => number; /** * JSON数据的深度克隆 * @param source * @returns */ export declare const deepClone: (source: any) => any; /** *根据要查找的key返回这一项 (递归查找) * @param {Array} array 要查找的源数组 * @param {string} nodeKey 唯一标识 * @param {string} key 要查找的键名, 默认nodeKey */ export declare function forFind(array: any[], nodeKey: string | number, key?: string): any; /** * 生成nodeKey * @returns string */ export declare const generateNodeKey: (node: TyCustomeField, yIndex: number) => string; /** * 递归函数,查找树的最大层级 * @param nodeArr * @param field //查找的 子集字段key * @returns */ export declare const findDepth: (nodeArr: TyCustomeField[] | undefined, field: TyChildField) => number; export declare const calculateCoordinates: (rootTree: TyCustomeField, getFlowInstDs: () => TyFlowInstDsType) => TyRewordTreeRes; /** * 根据画布容器高度计算展示纵向的个数 * @param canvasHeight 画布容器高度 */ export declare const getShowSize: (canvasHeight: number, getFlowInstDs: () => TyFlowInstDsType) => number; export declare const reworkTreeInit: ({ rootTree, canvasWidth, canvasHeight, getFlowInstDs }: TyRewordTreeArg) => TyRewordTreeRes; export declare const foldChildRework: ({ nodeData, canvasWidth, canvasHeight, getFlowInstDs }: TyFoldChildReworkArg) => TyCustomeField; /** * * @param str 字符 * @param maxLength 长度 * @returns 字符串中间增加...切片 */ export declare function addEllipsis(str: string, maxLength: number): string; /** * * @param str 字符 * @param maxLength 长度 * @returns 是否需要切片 */ export declare function isEllipsis(str: string, maxLength: number): boolean; export declare const findPathLinks: (targetNode: D3SvgNodeType, links: D3SvgLineType[]) => D3SvgLineType[];