import * as react_jsx_runtime from 'react/jsx-runtime';
import React__default from 'react';
import { UseFormReturn, FormState } from 'react-hook-form';
import { z } from 'zod';
import { a as FieldConfig, D as Dependency } from '../../shared/stack.fdi94T4S.js';
export { A as AutoFormInputComponentProps, b as DependencyType, F as FieldConfigItem } from '../../shared/stack.fdi94T4S.js';
import { Z as ZodObjectOrWrapped } from '../../shared/stack.CZMWR72v.js';

declare function AutoFormSubmit({ children, className, disabled, }: {
    children?: React__default.ReactNode;
    className?: string;
    disabled?: boolean;
}): react_jsx_runtime.JSX.Element;
declare function AutoForm<SchemaType extends ZodObjectOrWrapped>({ formSchema, values: valuesProp, onValuesChange: onValuesChangeProp, onParsedValuesChange, onSubmit: onSubmitProp, fieldConfig, children, className, dependencies, }: {
    formSchema: SchemaType;
    values?: Partial<z.infer<SchemaType>>;
    onValuesChange?: (values: Partial<z.infer<SchemaType>>, form: UseFormReturn<z.infer<SchemaType>>) => void;
    onParsedValuesChange?: (values: Partial<z.infer<SchemaType>>, form: UseFormReturn<z.infer<SchemaType>>) => void;
    onSubmit?: (values: z.infer<SchemaType>, form: UseFormReturn<z.infer<SchemaType>>) => void;
    fieldConfig?: FieldConfig<z.infer<SchemaType>>;
    children?: React__default.ReactNode | ((formState: FormState<z.infer<SchemaType>>) => React__default.ReactNode);
    className?: string;
    dependencies?: Dependency<z.infer<SchemaType>>[];
}): react_jsx_runtime.JSX.Element;

export { AutoForm, AutoFormSubmit, Dependency, FieldConfig, ZodObjectOrWrapped };
