/** * 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 { MetaTreeNode } from '../../flowContext'; export interface VariableHybridInputConverters { formatPathToValue?: (item?: MetaTreeNode) => string | undefined; parseValueToPath?: (value?: string) => string[] | undefined; variableRegExp?: RegExp; } export interface VariableHybridInputProps { value?: string; onChange?: (value: string) => void; disabled?: boolean; readOnly?: boolean; placeholder?: string; addonBefore?: React.ReactNode; metaTree?: MetaTreeNode[] | (() => MetaTreeNode[] | Promise); converters?: VariableHybridInputConverters; style?: React.CSSProperties; className?: string; /** * Validation status — turns the input border red (`error`) or amber * (`warning`). Usually omitted: when rendered inside an antd `Form.Item`, the * status is read automatically from `FormItemInputContext`, so dropping this * into a `Form.Item` with failing rules colours the border with no extra * wiring. An explicit prop wins over the inherited form status. */ status?: 'error' | 'warning'; } export declare const VariableHybridInput: React.NamedExoticComponent;