import { ReactNode } from 'react';
import { DefaultValues } from 'react-hook-form';
import { PageFormSubmitHandler } from './PageForm';
import { ErrorAdapter } from './typesErrorAdapter';
export interface GenericFormProps<T extends object> {
    children?: ReactNode;
    onSubmit: PageFormSubmitHandler<T>;
    onCancel?: () => void;
    defaultValue?: DefaultValues<T>;
    isVertical?: boolean;
    autoComplete?: 'on' | 'off';
    errorAdapter?: ErrorAdapter;
}
export declare function GenericForm<T extends object>(props: GenericFormProps<T>): import("react/jsx-runtime").JSX.Element;
