/**
 * 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.
 */
/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * 轻量变量输入组件：左侧 TextArea + 右侧 FlowContextSelector
 * 点击变量选择器后，将形如 {{ ctx.xxx.yyy }} 的变量插入到当前光标位置。
 */
import React from 'react';
import { type MetaTreeNode } from '@nocobase/flow-engine';
export interface TextAreaWithContextSelectorProps {
    value?: string;
    onChange?: (v: string) => void;
    placeholder?: string;
    rows?: number;
    maxRows?: number;
    style?: React.CSSProperties;
    disabled?: boolean;
    /**
     * Custom meta tree for the variable picker. Accepts an array, a sync getter,
     * or an async getter — same shape as `FlowContextSelector`'s `metaTree`. If
     * omitted, the full `ctx.getPropertyMetaTree()` is used (legacy default).
     */
    metaTree?: MetaTreeNode[] | (() => MetaTreeNode[] | Promise<MetaTreeNode[]>);
    /**
     * Format a picked meta node into the string inserted at the caret. When
     * omitted, the FlowContextSelector default (`{{ ctx.X.Y }}`) is used.
     * Override to match a different storage convention — e.g. NocoBase server
     * templates use `{{$X.Y}}` without the `ctx.` prefix.
     */
    formatPathToValue?: (meta: MetaTreeNode) => string;
}
/**
 * TextArea 与变量选择器的组合，紧凑排版，边框无缝拼接。
 */
export declare const TextAreaWithContextSelector: React.FC<TextAreaWithContextSelectorProps>;
export default TextAreaWithContextSelector;
