/**
 * 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.
 */
/**
 * "Test run" action — native-antd rewrite of v1's Formily `TestButton`
 * (`client/nodes/index.tsx`). v1 is deeply Formily-coupled (createForm /
 * legacy modal/action wrappers / observer), so per ADR-0003 it is rebuilt
 * here rather than ported.
 *
 * Click opens a centered `ctx.viewer.dialog` (X-to-close only, no footer) that:
 *   - warns that a test run hits real data / APIs;
 *   - lists every `{{ ... }}` variable reference in the node config (extracted
 *     with `parse(...).parameters`) as a row: left = the disabled variable pill,
 *     right = a pure-constant `TypedVariableInput` (no variable tree) to supply a
 *     literal test value — exactly v1's "replace variables" form;
 *   - on Run, substitutes the supplied values into the config via the
 *     `template(context)` returned by `parse`, POSTs `flow_nodes.test`, and shows
 *     the status (Resolved / Failed), the result JSON, and a collapsible log.
 */
import React from 'react';
/**
 * The footer "Test run" button shown in the node config drawer for testable
 * nodes. `form` is the drawer's antd form — its live `config` value is snapshot
 * into the dialog when opened.
 */
export declare function TestRunButton({ data, form, workflow: workflowProp }: {
    data: any;
    form: any;
    workflow?: any;
}): React.JSX.Element;
export default TestRunButton;
