/**
 * 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.
 */
/**
 * Modern canvas add-node flow (doc §9.6), a native-antd rewrite of v1's
 * Formily `AddNodeContext`. Opens a `ctx.viewer.drawer` (50% width, two-column
 * grouped menu — 1:1 with v1) listing the v2-registered instructions; selecting
 * a type creates the node via `workflows.nodes.create` and refreshes.
 *
 * Only types present in *this* (v2) runtime's instruction registry are listed —
 * a type implemented only in v1 simply does not appear (doc §9.1).
 */
import React from 'react';
import type { Instruction } from './Instruction';
/**
 * The add-time preset dialog body (small modal, mirrors v1's `Action.Modal`).
 * Hosts the instruction's `PresetFieldsetLoader` (e.g. the condition node's mode
 * picker) and, when inserting a branching node above an existing downstream node,
 * the `DownstreamBranchIndex` field. On submit it validates and delegates to
 * `onSubmit(values)` — the provider owns the actual create + downstream
 * re-parenting.
 */
export declare function PresetDialogForm({ instruction, hasDownstream, onSubmit, }: {
    instruction: Instruction;
    hasDownstream: boolean;
    onSubmit: (values: any) => Promise<void>;
}): React.JSX.Element;
export declare function AddNodeContextProvider(props: {
    children: React.ReactNode;
}): React.JSX.Element;
