/** * 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 React from 'react'; import type { CascaderProps } from 'antd'; import { type CollectionTriggerField, type UseVariableOptions } from '@nocobase/plugin-workflow/client-v2'; import type { AggregateAssociationConfig } from '../types'; type FieldWithDataSource = CollectionTriggerField & { collectionName?: string; dataSourceKey?: string; options?: FieldWithDataSource; }; type AssociatedCascaderOption = { appends?: string[] | null; depth?: number; key?: string; value: string; label?: React.ReactNode; disabled?: boolean; isLeaf?: boolean; field?: FieldWithDataSource; loadChildren?: ((option: AssociatedCascaderOption) => Promise | void) | null; types?: UseVariableOptions['types']; children?: AssociatedCascaderOption[]; }; export declare function AssociatedConfig({ value, onChange, onDropdownVisibleChange, ...props }: Omit, 'loadData' | 'multiple' | 'onChange' | 'options' | 'value'> & { value?: AggregateAssociationConfig | null; onChange?: (value: AggregateAssociationConfig) => void; }): React.JSX.Element; export default AssociatedConfig;