/***************************************************************************
 * The contents of this file were generated with Amplify Studio.           *
 * Please refrain from making any modifications to this file.              *
 * Any changes to this file will be overwritten when running amplify pull. *
 **************************************************************************/

import * as React from "react";
import { GridProps, SwitchFieldProps, TextFieldProps } from "@aws-amplify/ui-react";
import { EscapeHatchProps } from "@aws-amplify/ui-react/internal";
export declare type ValidationResponse = {
    hasError: boolean;
    errorMessage?: string;
};
export declare type ValidationFunction<T> = (value: T, validationResponse: ValidationResponse) => ValidationResponse | Promise<ValidationResponse>;
export declare type RecipeIngredientCreateFormInputValues = {
    createdAt?: string;
    updatedAt?: string;
    isDeleted?: boolean;
    index?: string;
    name?: string;
    quantity?: string;
    unit?: string;
};
export declare type RecipeIngredientCreateFormValidationValues = {
    createdAt?: ValidationFunction<string>;
    updatedAt?: ValidationFunction<string>;
    isDeleted?: ValidationFunction<boolean>;
    index?: ValidationFunction<string>;
    name?: ValidationFunction<string>;
    quantity?: ValidationFunction<string>;
    unit?: ValidationFunction<string>;
};
export declare type PrimitiveOverrideProps<T> = Partial<T> & React.DOMAttributes<HTMLDivElement>;
export declare type RecipeIngredientCreateFormOverridesProps = {
    RecipeIngredientCreateFormGrid?: PrimitiveOverrideProps<GridProps>;
    createdAt?: PrimitiveOverrideProps<TextFieldProps>;
    updatedAt?: PrimitiveOverrideProps<TextFieldProps>;
    isDeleted?: PrimitiveOverrideProps<SwitchFieldProps>;
    index?: PrimitiveOverrideProps<TextFieldProps>;
    name?: PrimitiveOverrideProps<TextFieldProps>;
    quantity?: PrimitiveOverrideProps<TextFieldProps>;
    unit?: PrimitiveOverrideProps<TextFieldProps>;
} & EscapeHatchProps;
export declare type RecipeIngredientCreateFormProps = React.PropsWithChildren<{
    overrides?: RecipeIngredientCreateFormOverridesProps | undefined | null;
} & {
    clearOnSuccess?: boolean;
    onSubmit?: (fields: RecipeIngredientCreateFormInputValues) => RecipeIngredientCreateFormInputValues;
    onSuccess?: (fields: RecipeIngredientCreateFormInputValues) => void;
    onError?: (fields: RecipeIngredientCreateFormInputValues, errorMessage: string) => void;
    onChange?: (fields: RecipeIngredientCreateFormInputValues) => RecipeIngredientCreateFormInputValues;
    onValidate?: RecipeIngredientCreateFormValidationValues;
} & React.CSSProperties>;
export default function RecipeIngredientCreateForm(props: RecipeIngredientCreateFormProps): React.ReactElement;
