import { IModelField, IDeclaration, IDeclarationObject, IFunction, IFunctionObject, IDeclarationOninit, IProxy } from '../editor/index.d'; import { ISelectorDeclaration, ISelectorValueDeclaration } from '../ast/index.d'; export declare function composeDataModel( fqn: string, dataModels: any[] ): IModelField export declare function composeEventStream( fqn: string, eventStream: any ): IModelField export declare const DeclarationParsers: { Selector(input: string): ISelectorDeclaration; SelectorValue(input: string): ISelectorValueDeclaration & { values: Array; }; }; /** * 将 declaration 转化为对象结构 * @param declaration IDeclaration */ export declare function transformDeclarationToObject(declaration: IDeclaration): IDeclarationObject; /** * 将 declarations 数组转化为对象结构 * @param declarations IDeclaration[] */ export declare function transformDeclarationsToObject(declarations: IDeclaration[]): IDeclarationObject[]; /** * 将 declaration 转化为字符串结构 * @param declaration IDeclaration */ export declare function transformDeclarationToString(declaration: IDeclaration): string; /** * 将 declarations 数组转化为字符串结构 * @param declarations IDeclaration[] */ export declare function transformDeclarationsToString(declarations: IDeclaration[]): string[] /** * 将 function 转化为对象结构 * @param func IFunction */ export declare function transformFunctionToObject(func: IFunction): IFunctionObject; /** * 将 functions 数组转化为对象结构 * @param functions IFunction[] */ export declare function transformFunctionsToObject(functions: IFunction[]): IFunctionObject[]; /** * 将 function 转化为字符串结构 * @param func IFunction */ export declare function transformFunctionToString(func: IFunction): string; /** * 将 functions 数组转化为字符串结构 * @param functions IFunction[] */ export declare function transformFunctionsToString(functions: IFunction[]): string[]; export declare function consumeProxies(input: string, proxies: IProxy[]): string; export interface ISingleDropdownSelectProxyOptionValue { classname?: string, componentStyle?: React.CSSProperties, options: Array<{ name: string, value: string, description?: string }> } export interface ISingleDropdownSelectProxyOptions { [key: string]: ISingleDropdownSelectProxyOptionValue; } export declare function createSingleDropdownSelectProxy(config: { options: ISingleDropdownSelectProxyOptions, mode?: 'Preview' | 'Edit' }): IProxy; export declare function createSingleDropdownSelectComponent(config: { value: string | number | undefined, selectStyle: React.CSSProperties, onChange: (value: string | number | any) => void; options: Array<{ name: string, value: string, description?: string }> }): void; export interface IMultipleDropdownSelectProxyOptionValue { classname?: string, componentStyle?: React.CSSProperties, options: Array<{ name: string, value: string, description?: string }> } export interface IMultipleDropdownSelectProxyOptions { [key: string]: IMultipleDropdownSelectProxyOptionValue; } export declare function createMultipleDropdownSelectProxy(config: { options: IMultipleDropdownSelectProxyOptions, mode?: 'Preview' | 'Edit' }): IProxy; export declare function createMultipleDropdownSelectComponent(config: { value: string[] | undefined, selectStyle: React.CSSProperties, onChange: (value: string[]) => void; options: Array<{ name: string, value: string, description?: string }> }): void; export declare function createOriginSingleDropdownSelectProxy(config: { mode: 'Preview' | 'Edit'; componentStyle?: React.CSSProperties; classname?: string; regexp: RegExp; options: Array<{ name: string, value: string, description?: string }>; }): IProxy;