import React from 'react'; import { IVariableTreeNode } from '@music163/tango-helpers'; import { InputCodeProps } from '@music163/tango-ui'; import { FormItemComponentProps } from '@music163/tango-setting-form'; export declare const expressionValueValidate: (value: string) => string; export declare const jsonValueValidate: (value: string) => string; /** * 拼装回调函数 * @param value 回调函数体 * @param template 回调函数模板 * @returns */ export declare function getCallbackValue(value: string, template?: string): string; export interface CodeSetterProps extends FormItemComponentProps { modalTitle?: string; modalTip?: string; autoCompleteOptions?: string[]; allowClear?: boolean; showOptionsDropDown?: boolean; /** * 表达式类型指定为 css object */ expressionType?: 'cssObject'; } export declare function CodeSetter(props: CodeSetterProps): React.JSX.Element; export interface ExpressionPopoverProps extends InputCodeProps { title?: string; subTitle?: string; placeholder?: string; defaultValue?: string; value?: string; onOk?: (value: string) => void; dataSource?: IVariableTreeNode[]; autoCompleteOptions?: string[]; /** * 值的模板,一般用于定义函数模板 */ template?: string; /** * 新建 store 的模板代码 */ newStoreTemplate?: string; /** * 表达式类型指定为 css object */ expressionType?: 'cssObject'; children?: React.ReactNode; } export declare function ExpressionPopover({ title, subTitle, placeholder, onOk, defaultValue, value, dataSource, autoCompleteOptions, template, newStoreTemplate, children, expressionType, }: ExpressionPopoverProps): React.JSX.Element;