/** * 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 { SubModelItem } from '@nocobase/flow-engine'; import { Instruction, type UseVariableOptions, type VariableOption } from '@nocobase/plugin-workflow/client-v2'; type AggregateNodeLike = { id?: string | number; key: string; title?: string; config?: { collection?: string; }; }; export default class AggregateInstruction extends Instruction { title: string; type: string; group: string; description: string; icon: React.JSX.Element; FieldsetLoader: () => Promise<{ default: typeof import("./components/AggregateFieldset").AggregateFieldset; }>; createDefaultConfig(): { aggregator: string; associated: boolean; precision: number; }; useVariables({ key, title }: AggregateNodeLike, { types, fieldNames }?: UseVariableOptions): VariableOption | null; getCreateModelMenuItem({ node }: { node: AggregateNodeLike; }): SubModelItem | null; } export {};