/**
 * 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 PluginWorkflowClientV2 from '../plugin';
export type WorkflowCategoryOption = {
    value: string | number;
    label: string;
};
export type WorkflowRecord = {
    id: number | string;
    title?: string;
    type?: string;
    sync?: boolean;
    description?: string;
    enabled?: boolean;
    config?: Record<string, any>;
    options?: Record<string, any>;
    categories?: Array<{
        id: string | number;
    }>;
    [key: string]: any;
};
export type WorkflowFormDrawerProps = {
    mode: 'create' | 'edit';
    /** Pre-selected trigger type for create mode (optional). */
    type?: string;
    plugin: PluginWorkflowClientV2;
    record?: WorkflowRecord;
    categoryOptions: WorkflowCategoryOption[];
    onSubmitted: () => void;
};
export declare function WorkflowFormDrawer(props: WorkflowFormDrawerProps): React.JSX.Element;
export default WorkflowFormDrawer;
