import { CreateParams, RaRecord, TransformData, UpdateParams } from 'ra-core'; import { Slot } from '@radix-ui/react-slot'; import { UseMutationOptions } from '@tanstack/react-query'; import * as React from "react"; import * as LabelPrimitive from "@radix-ui/react-label"; declare const Form: (props: import('react-hook-form').FormProviderProps) => React.JSX.Element; declare const useFormField: () => { invalid: boolean; isDirty: boolean; isTouched: boolean; isValidating: boolean; error?: import('react-hook-form').FieldError; formItemId: string; formDescriptionId: string; formMessageId: string; }; declare function FormField({ className, id, name, ...props }: FormItemProps): import("react/jsx-runtime").JSX.Element; type FormItemProps = Omit, "id"> & { id: string; name: string; }; declare function FormLabel({ className, ...props }: React.ComponentProps): import("react/jsx-runtime").JSX.Element; declare function FormControl({ ...props }: React.ComponentProps): import("react/jsx-runtime").JSX.Element; declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element; declare const FormError: ({ className, ...props }: React.ComponentProps<"p">) => import("react/jsx-runtime").JSX.Element | null; declare const SaveButton: >(props: SaveButtonProps) => import("react/jsx-runtime").JSX.Element; interface Props { className?: string; disabled?: boolean; icon?: React.ReactNode; label?: string; mutationOptions?: UseMutationOptions | UpdateParams>; transform?: TransformData; variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"; } export type SaveButtonProps = Props & React.ComponentProps<"button"> & { alwaysEnable?: boolean; }; export { useFormField, Form, FormField, FormLabel, FormControl, FormDescription, FormError, SaveButton, };