/**
 * 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 { FlowContextSelectorProps } from '@nocobase/flow-engine';
import { type UseWorkflowVariableOptions } from '../canvas/useWorkflowVariableOptions';
type BaseWrapperRenderProps<TValue> = {
    value?: TValue | undefined;
    onChange?: (value: TValue | null) => void;
};
export type WorkflowVariableWrapperProps<TValue> = {
    value?: TValue | string | null;
    onChange?: (value: TValue | string | null) => void;
    variableOptions?: UseWorkflowVariableOptions;
    render: (props: BaseWrapperRenderProps<TValue>) => React.ReactNode;
    clearValue?: TValue | null;
    selectorProps?: Partial<FlowContextSelectorProps>;
};
export declare function WorkflowVariableWrapper<TValue>({ value, onChange, variableOptions, render, clearValue, selectorProps, }: WorkflowVariableWrapperProps<TValue>): React.JSX.Element;
export default WorkflowVariableWrapper;
