/**
 * 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 { type UseVariableOptions, type VariableOption } from '../../canvas/collectionFieldOptions';
import { Trigger, type LoaderOf } from '..';
export default class CollectionTrigger extends Trigger {
    title: string;
    description: string;
    PresetFieldsetLoader: LoaderOf;
    FieldsetLoader: LoaderOf;
    TriggerFieldsetLoader: LoaderOf;
    validate(config: Record<string, unknown>): boolean;
    useVariables: typeof useVariables;
    getCreateModelMenuItem({ config }: {
        config: {
            collection?: string;
        };
    }): SubModelItem | null;
    useTempAssociationSource(config: {
        collection?: string;
    }, workflow?: {
        id?: string | number;
    }): {
        collection: string;
        nodeId: string | number;
        nodeKey: string;
        nodeType: "workflow";
    };
}
declare function useVariables(config: {
    collection?: string;
    appends?: string[];
}, options?: UseVariableOptions): VariableOption[];
export {};
