/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
export type DynamicNamePart = string | number;
/**
 * Build a dynamic NamePath based on current subform list row index.
 *
 * fieldIndex is an array like: ["products:0", "products:2"] (nested lists allowed, including same-name lists).
 *
 * For example:
 * - nameParts: ["products", "products"] + fieldIndex: ["products:0"] => [0, "products"]
 * - nameParts: ["products", "products", "id"] + fieldIndex: ["products:1", "products:0"] => [0, "id"]
 */
export declare function buildDynamicNamePath(nameParts: DynamicNamePart[], fieldIndex?: string[]): DynamicNamePart[];
