import { List, useWatch } from 'rc-field-form'; import type { FormProps as RcFormProps } from 'rc-field-form/lib/Form'; import * as React from 'react'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; import { FormLayout } from '.'; import { ListProps } from '../list/List'; import type { FeedbackIcons } from './FormItem'; import type { FormInstance } from './hooks/useForm'; import useForm from './hooks/useForm'; export type RequiredMark = boolean | 'optional' | ((labelNode: React.ReactNode, info: { required: boolean; }) => React.ReactNode); export interface FormProps extends Omit, Omit, 'form' | 'style'> { name?: string; layout?: FormLayout; labelStyle?: StyleProp; wrapperStyle?: StyleProp; form?: FormInstance; feedbackIcons?: FeedbackIcons; disabled?: boolean; requiredMark?: RequiredMark; } declare const Form: ((props: React.PropsWithChildren> & React.RefAttributes>) => React.ReactElement) & Pick; export { FormInstance, List, useForm, useWatch }; export default Form;