import * as React from "react"; import { type Control, type FieldPath, type FieldValues } from "react-hook-form"; import { type FormFieldShellControlProps } from "@/components/form/form-field-shell"; import { Switch } from "@/components/ui/switch"; export type FormSwitchLabelPlacement = "start" | "end"; export type FormSwitchProps = FieldPath> = Omit, "name" | "checked" | "defaultChecked" | "disabled"> & FormFieldShellControlProps & { control: Control; name: TName; fieldClassName?: string; labelPlacement?: FormSwitchLabelPlacement; onCheckedChange?: (checked: boolean) => void; }; declare function FormSwitch = FieldPath>({ control, name, label, description, success, loading, required, className, layout, descriptionPosition, labelAction, requiredIndicator, errorIcon, showErrorIcon, disabled, readOnly, labelClassName, labelRowClassName, descriptionClassName, errorClassName, contentClassName, fieldClassName, labelPlacement, id, onCheckedChange, ...props }: FormSwitchProps): React.JSX.Element; export { FormSwitch };