import { ReactNode, PropsWithoutRef } from 'react';
import { FormProps as FinalFormProps } from 'react-final-form';
import { z } from 'zod';
export { FORM_ERROR } from 'final-form';
export interface FormProps<S extends z.ZodType<any, any>> extends Omit<PropsWithoutRef<JSX.IntrinsicElements['form']>, 'onSubmit'> {
    /** All your form fields */
    children?: ReactNode;
    /** Text to display in the submit button */
    submitText?: string;
    schema?: S;
    onSubmit: FinalFormProps<z.infer<S>>['onSubmit'];
    initialValues?: FinalFormProps<z.infer<S>>['initialValues'];
    buttonWidth?: string;
    flexW?: string;
}
export declare function Form<S extends z.ZodType<any, any>>({ children, submitText, schema, initialValues, onSubmit, buttonWidth, flexW, ...props }: FormProps<S>): JSX.Element;
export default Form;
