/**
 * 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.
 */
import { DisplayItemModel, FlowModelContext } from '@nocobase/flow-engine';
import React from 'react';
import { FieldModel } from '../../base';
import { DetailsGridModel } from './DetailsGridModel';
/**
 * 从 record 中取值
 * @param record 当前行数据
 * @param fieldPath 字段路径 (如 "o2m_aa.oho_bb.name")
 * @param idx Form.List 的索引
 */
export declare function getValueWithIndex(record: any, fieldPath: string, idx?: string[]): any;
export declare function getDetailsItemValue(options: {
    record: any;
    currentObject?: any;
    fieldPath: string;
    prefixFieldPath?: string;
    idx?: string[];
}): any;
export declare class DetailsItemModel extends DisplayItemModel<{
    parent: DetailsGridModel;
    subModels: {
        field: FieldModel;
    };
}> {
    static defineChildren(ctx: FlowModelContext): {
        key: any;
        label: string;
        refreshTargets: string[];
        toggleable: (subModel: any) => boolean;
        useModel: string;
        createModelOptions: () => {
            use: string;
            stepParams: {
                fieldSettings: {
                    init: {
                        dataSourceKey: any;
                        collectionName: any;
                        fieldPath: any;
                    };
                };
            };
            subModels: {
                field: {
                    use: string;
                    props: any;
                };
            };
        };
    }[];
    onInit(options: any): void;
    renderItem(): React.JSX.Element;
}
