/** * 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. */ /** * 通用的 Action 注册表基类(abstract)。 * 抽取共享的注册逻辑,具体查询由子类实现。 */ import type { ActionDefinition } from '../types'; import type { FlowModel } from '../models'; import type { FlowContext, FlowRuntimeContext } from '../flowContext'; export declare abstract class BaseActionRegistry { protected actions: Map>; protected onActionRegistered(): void; registerActions(defs: Record>): void; registerAction(def: ActionDefinition): void; abstract getAction>(name: string): ActionDefinition | undefined; abstract getActions>(): Map>; }