import React from 'react'; import type { CommonPropsType } from '../../types'; export declare function useParentForm($widget: CommonPropsType['$widget']): import("../../types").IWidget; type Rule = { format: string; message: string; } | { format: ''; pattern: string; }; export type FormInputTraitParams = { name: string; value: Value; onChange: (val: Value) => void; events?: CommonPropsType['events']; disabled: boolean; readOnly: boolean; required: boolean; requiredMsg: string; layout?: 'auto' | '' | 'horizontal' | 'vertical'; inputRef: React.Ref<{ setValue: (val: Value) => void; }>; rules?: Rule[]; validateStatus?: 'success' | 'warn' | 'error'; status?: 'edit' | 'disabled' | 'readOnly'; setInnerHandle?: (arg: unknown) => void; label: string; } & Pick; export declare function useFormInputTrait(inputParams: FormInputTraitParams): { visible: boolean; onChange: (value: Value) => void; value: Value; disabled: boolean; readOnly: boolean; required: boolean; name: string; validateState: "success" | "error" | "warn"; validateErrorMsg: string; layout: "vertical" | "horizontal"; initValidate: (validateState: any, validateErrorMsg: any) => void; }; export {};