import { type ComponentProps, type ReactNode } from "react";
export declare function useFormBuilder<T>(args: {
    fields: T;
}): {
    ({ children }: {
        children: ReactNode;
    }): import("react/jsx-runtime").JSX.Element;
    Field<K extends keyof T>({ name, ...rest }: {
        name: K;
    } & ComponentProps<(typeof args.fields)[K]>): import("react/jsx-runtime").JSX.Element;
};
//# sourceMappingURL=useForm.d.ts.map