/**
 * 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 { SchemaInitializerItemType, useCollectionDataSource } from '@nocobase/client';
import { useWorkflowAnyExecuted } from '../hooks';
import { Trigger } from '.';
import { TriggerCollectionRecordSelect } from '../components/TriggerCollectionRecordSelect';
import { SubModelItem } from '@nocobase/flow-engine';
declare function useVariables(config: any, options: any): import("../variable").VariableOption[];
export default class extends Trigger {
    title: string;
    description: string;
    presetFieldset: {
        collection: {
            'x-component-props': {
                dataSourceFilter(item: any): any;
            };
            type: string;
            title: string;
            required: boolean;
            'x-reactions': any[];
            'x-decorator': string;
            'x-component': string;
        };
        rollbackOnFailure: {
            type: string;
            'x-content': string;
            description: string;
            'x-decorator': string;
            'x-component': string;
            default: boolean;
            'x-reactions': string[];
        };
    };
    fieldset: {
        collection: {
            'x-disabled': boolean;
            'x-component-props': {
                dataSourceFilter(item: any): any;
            };
            "x-reactions": any[];
            type: string;
            title: string;
            required: boolean;
            'x-decorator': string;
            'x-component': string;
        };
        mode: {
            type: string;
            title: string;
            'x-decorator': string;
            'x-component': string;
            'x-component-props': {
                popupMatchSelectWidth: boolean;
                placeholder: string;
                className: string;
            };
            enum: {
                label: string;
                value: number;
            }[];
            required: boolean;
            'x-reactions': {
                dependencies: string[];
                fulfill: {
                    state: {
                        visible: string;
                    };
                };
            }[];
        };
        changed: {
            type: string;
            title: string;
            description: string;
            'x-decorator': string;
            'x-component': string;
            'x-component-props': {
                mode: string;
                placeholder: string;
                filter(field: any): boolean;
            };
            'x-reactions': {
                dependencies: string[];
                fulfill: {
                    state: {
                        visible: string;
                    };
                };
            }[];
        };
        condition: {
            title: string;
            'x-component-props': {};
            'x-reactions': {
                dependencies: string[];
                fulfill: {
                    state: {
                        visible: string;
                    };
                };
            }[];
            type: string;
            'x-decorator': string;
            'x-component': string;
            'x-use-component-props': () => {
                options: any[];
                className: string;
            };
        };
        appends: {
            'x-reactions': {
                dependencies: string[];
                fulfill: {
                    state: {
                        visible: string;
                    };
                };
            }[];
            type: string;
            title: string;
            description: string;
            'x-decorator': string;
            'x-component': string;
            'x-component-props': {
                title: string;
                multiple: boolean;
                useCollection(): any;
            };
        };
        syncTransactionNotice: {
            type: string;
            'x-component': string;
        };
        rollbackOnFailure: {
            type: string;
            'x-content': string;
            description: string;
            'x-decorator': string;
            'x-component': string;
            default: boolean;
            'x-reactions': string[];
        };
    };
    scope: {
        useCollectionDataSource: typeof useCollectionDataSource;
        useSyncModeVisibleReaction: (field: any) => void;
        useWorkflowAnyExecuted: typeof useWorkflowAnyExecuted;
    };
    components: {
        Alert: React.ForwardRefExoticComponent<import("antd").AlertProps & React.RefAttributes<import("antd/es/alert/Alert").AlertRef>> & {
            ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
        };
        FieldsSelect: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
        SyncTransactionNotice: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
        TriggerCollectionRecordSelect: typeof TriggerCollectionRecordSelect;
    };
    triggerFieldset: {
        data: {
            type: string;
            title: string;
            description: string;
            'x-decorator': string;
            'x-component': string;
            default: any;
            required: boolean;
        };
    };
    validate(values: any): any;
    useVariables: typeof useVariables;
    useInitializers(config: any): SchemaInitializerItemType | null;
    /**
     * 2.0
     */
    getCreateModelMenuItem({ config }: {
        config: any;
    }): SubModelItem;
    useTempAssociationSource(config: any, workflow: any): {
        collection: any;
        nodeId: any;
        nodeKey: string;
        nodeType: "workflow";
    };
}
export {};
