/// <reference types="react" />
import type { FormValues } from '../../types';
import { type EditingFormProps } from '../EditingForm';
type UseLogicParams<TValue> = EditingFormProps<TValue>;
export declare const useLogic: <TValue>({ initialValue, children, validate, onClose, onSubmit, }: UseLogicParams<TValue>) => {
    formProps: {
        form: import("react-hook-form").UseFormReturn<FormValues, any>;
        onSubmit: (e?: import("react").BaseSyntheticEvent<object, any, any> | undefined) => Promise<void>;
    };
};
export {};
