import { ID, IStoreState } from '../index.data'; /** * 以最精简的方式设置 state * 亦即: 如果 state.k === props.k, 则不更新 * 例如 ({a:1, b:2, c:3, d:4}, {a:1, b:3}) => {b:3} * @param base 可以理解为state * @param patch 可以理解为 partial * @returns patch里与obj不同的部分, 默认deep */ export declare function pickPatch(base: Record, patch: Record): Record; /** * 由于 {1: {}}中的1 ,无法判别是 number 还是string , 因此程序统一使用正则匹配 * 1 => number * 'a' => string */ export declare function getTypedId(id: string): string | number; export declare function getValue(value: string, dataType: string | undefined): string | number; export declare function getAncestors(rowId: ID, treeContext: IStoreState['treeContext']): ID[]; export declare function isNumberStr(s: any): boolean;