import { SwitchProps } from "@mantine/core"; import { FieldValues, UseControllerProps } from "react-hook-form"; import RHFSwitchGroup from "./RHFSwitchGroup"; type Props = SwitchProps & { name: UseControllerProps["name"]; rules?: UseControllerProps["rules"]; defaultValue?: UseControllerProps["defaultValue"]; }; declare function RHFSwitch(props: Props): import("react/jsx-runtime").JSX.Element; declare namespace RHFSwitch { var Group: typeof RHFSwitchGroup; } export default RHFSwitch; export declare const createSwitchField: () => (props: Props) => import("react/jsx-runtime").JSX.Element;