import type { NamePath } from 'antd/es/form/interface'; /** * 定义支持多字段依赖的类型 */ export interface NamePathsDependencyType { type: 'namesPaths'; paths: NamePath[][]; } /** * dependencies支持的类型 */ export type Dependencies = NamePath[] | NamePathsDependencyType; /** * 处理表单依赖项 * * 将常规的依赖项数组与namesPaths类型的依赖项进行处理 * 对于namesPaths类型,将其转换为特定格式的字符串: * - 同一路径内的多级通过下划线(_)连接 * - 不同路径之间通过连字符(-)连接 * * 例如: * { type: 'namesPaths', paths: [['a', 'b'], ['c', 'd']] } * 会被转换成: ['a_b-c_d'] * * @param dependencies 依赖项配置 * @returns 处理后的依赖项数组 */ export declare function processDependencies(dependencies?: any): any; export default processDependencies;