import React from 'react';
import type { UseFormType } from './useForm';
import type { UseListType } from '../useFormList/useList';
export type FormContextType = UseFormType<any> & {
    isFieldDisable: Function;
    showStarRequired?: boolean;
} | null;
export declare const FormContext: React.Context<UseFormType<any> & {
    isFieldDisable: Function;
    showStarRequired?: boolean;
}>;
interface Props<ValuesType, ValuesListType> extends React.FormHTMLAttributes<HTMLFormElement> {
    children: React.ReactNode;
    handleSubmit: ((values: ValuesType & {
        [K: string]: ValuesListType[];
    }, next: Function, end: Function) => void) | ((values: any & {
        [K: string]: ValuesListType[];
    }, next: Function, end: Function) => void)[];
    /** @deprecated Please use handleSubmit instead. */ handlerSubmit?: ((values: ValuesType & {
        [K: string]: ValuesListType[];
    }, next: Function, end: Function) => void) | ((values: any & {
        [K: string]: ValuesListType[];
    }, next: Function, end: Function) => void)[];
    form: UseFormType<ValuesType>;
    onSubmitError?: Function;
    preventEnter?: boolean;
    showStarRequired?: boolean;
    mode?: 'list';
    listCtl?: UseListType<ValuesListType>;
    listName?: string;
}
declare const Form: <ValuesType extends {
    [key: string]: any;
} = {}, ValuesListType extends {
    [key: string]: any;
} = {}>(props: Props<ValuesType, ValuesListType>) => import("react/jsx-runtime").JSX.Element;
export default Form;
