/** * Store 路径解析与读写工具 * 与 original UseStore 一致:支持 dataSet 数组下标(如 list[0])、dataSetField 多级路径(如 pagination.current、value[0].name) */ export type PathSegment = { type: 'array' | 'property'; key: string | number; }; /** * 解析 dataSet 名中的数组下标 * 例如 "to_deal_lst[0]" → { baseName: "to_deal_lst", index: 0 } * "sessionId_list" → { baseName: "sessionId_list", index: null } */ export declare function parseArrayNotation(dataSetName: string): { baseName: string; index: number | null; }; /** * 解析多层级路径为段列表 * 例如 "pagination.current" → [{ type: 'property', key: 'pagination' }, { type: 'property', key: 'current' }] * "value[0].name" → [{ type: 'property', key: 'value' }, { type: 'array', key: 0 }, { type: 'property', key: 'name' }] */ export declare function parseNestedPath(path: string): PathSegment[]; /** * 按路径安全获取嵌套值 */ export declare function getNestedValue(obj: any, path: PathSegment[]): any; /** * 按路径安全设置嵌套值,返回新对象/数组(不修改原对象) */ export declare function setNestedValue(obj: any, path: PathSegment[], value: any): any; //# sourceMappingURL=storePathUtils.d.ts.map