import { Control, FieldPath, FieldValues } from 'react-hook-form'; import { FieldComponents } from './form'; import * as SwitchPrimitives from '@radix-ui/react-switch'; import type * as React from 'react'; export interface SwitchFieldComponents extends FieldComponents { Switch?: React.ComponentType>; SwitchThumb?: React.ComponentType>; } export interface SwitchProps = FieldPath> extends Omit, 'checked' | 'defaultChecked' | 'onCheckedChange'> { control?: Control; name: TName; label?: React.ReactNode; description?: string; className?: string; components?: Partial; } declare const SwitchField: { ({ control, name, className, label, description, components, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export { SwitchField }; //# sourceMappingURL=switch-field.d.ts.map