///
import { Schema } from './types/schema.js';
import { FieldValues, SubmitHandler } from "react-hook-form";
declare const defaultClassNames: {
form: string;
content: string;
footer: string;
fields: {
label: string;
hint: {
text: string;
bottom: string;
top: string;
};
focusRing: string;
fieldInput: string;
fieldSelect: string;
};
};
declare function Form({ classNames, buttonLabel, schema, showRequiredLabel, showOptionalLabel, initialValues, uploadAsset, invalid, onSubmit, children, type, open, setOpen, title, buttonProps, }: {
title?: string;
type?: "default" | "slideover";
open?: boolean;
setOpen?: (open: boolean) => void;
classNames?: typeof defaultClassNames;
showRequiredLabel?: boolean;
showOptionalLabel?: boolean;
buttonLabel?: string;
invalid?: boolean;
schema: Schema.FieldDefinition[];
uploadAsset?: Function;
onSubmit: SubmitHandler;
children?: React.ReactNode;
/**
* Initial values passed into the form,
* these will overwrite any initial value defined on the schema
* */
initialValues?: FieldValues | undefined;
buttonProps?: object;
}): JSX.Element | null;
export default Form;