import React from 'react'; import { FormInstance } from 'antd/es/form'; import { FormItemConfig, FormItemExtraConfig, FormItemName, FormItemCopyValue, FormItemSelectValue, FormItemAssert, Rule } from '../types'; import { NamePath } from 'antd/es/form/interface'; export declare const calcNamePath: (parentName: FormItemName | undefined, name: FormItemName | undefined) => any[]; export declare const testAssert: (form: FormInstance, assert: FormItemAssert) => boolean; export declare const calcFormItemProps: (config: FormItemConfig, extraProps: FormItemExtraConfig, form?: FormInstance, parentName?: FormItemName, validationCodeExtraParams?: Record) => { colProps: { span: number; xs: number; sm: number; md: number; halfRow: boolean | undefined; }; formItemProps: { name: any[]; className: string | undefined; initialValue: any; copiedValue: { copied: boolean; value?: undefined; disabled?: undefined; } | { copied: boolean; value: any; disabled: boolean | undefined; }; selectedValue: { selected: boolean; value?: undefined; disabled?: undefined; } | { selected: boolean; value: any; disabled: boolean | undefined; }; normalize: ((value: any, prevValue: any, allValues: import("rc-field-form/lib/interface").Store) => any) | undefined; rules: Rule[]; validateTrigger: any[]; label: import("react/jsx-runtime").JSX.Element | null; getValueFromEvent: ((...args: import("rc-field-form/lib/interface").EventArgs) => any) | undefined; getValueProps: ((value: any) => Record) | undefined; extra: false | "" | 0 | import("react/jsx-runtime").JSX.Element | null | undefined; help: React.ReactNode; valuePropName: string | undefined; messageVariables: { label: string; }; dependencies: any[] | undefined; }; elementProps: { [key: string]: any; }; display: any; previewFormater: ((value: any, form?: FormInstance | undefined) => any) | undefined; }; export declare const calcDisabled: (disabled?: boolean | FormItemAssert | FormItemAssert[], form?: FormInstance, disabledCode?: string, name?: FormItemName, parentName?: FormItemName) => any; export declare const calcCopyValue: (copyValue?: FormItemCopyValue, form?: FormInstance) => { copied: boolean; value?: undefined; disabled?: undefined; } | { copied: boolean; value: any; disabled: boolean | undefined; }; export declare const calcSelectValue: (selectValue?: FormItemSelectValue[], form?: FormInstance) => { selected: boolean; value?: undefined; disabled?: undefined; } | { selected: boolean; value: any; disabled: boolean | undefined; }; export declare const calcShouldRender: (name: NamePath, parentName: NamePath, dependencies?: NamePath[], asserts?: FormItemAssert[], shouldRender?: ((form?: FormInstance) => boolean) | undefined, shouldRenderCode?: string, form?: FormInstance) => any; export declare const automaticCalculate: (name: NamePath, parentName: NamePath, automaticCalcCode?: string, form?: FormInstance) => void; export declare const getRuleValidation: (url: string, rule: string | string[], values?: any, lang?: string) => Promise; export declare const calcAddableSectionAssertField: (name: any[], field: FormItemAssert['field'], index: number, elements: FormItemConfig[] | React.ReactElement[]) => any;