/** * 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 { type SubModelItem } from '@nocobase/flow-engine'; import { Trigger, type TriggerLoaderOf, type UseVariableOptions, type VariableOption } from '@nocobase/plugin-workflow/client-v2'; import { EVENT_TYPE } from '../../common/constants'; type CustomActionTriggerConfig = { type?: number | null; collection?: string; appends?: string[]; global?: boolean; }; declare function useVariables(config: CustomActionTriggerConfig, options?: UseVariableOptions): VariableOption[]; export declare class CustomActionTrigger extends Trigger { title: string; description: string; PresetFieldsetLoader: TriggerLoaderOf; FieldsetLoader: TriggerLoaderOf; TriggerFieldsetLoader: TriggerLoaderOf; createDefaultConfig(): { type: number; }; validate(values: CustomActionTriggerConfig): boolean; isActionTriggerable_deprecated: (config: CustomActionTriggerConfig, context: { buttonAction?: string; }) => boolean; useVariables: typeof useVariables; getCreateModelMenuItem({ config }: { config: CustomActionTriggerConfig; }): SubModelItem | null; } export { EVENT_TYPE };