import type { ComponentPropsWithoutRef, ReactNode } from "react"; import { type As, type MergeWithAs, type SwitchProps } from "@heroui/react"; import type { Field } from "soda-tanstack-form"; export type FormSwitchProps = MergeWithAs, ComponentPropsWithoutRef, SwitchProps, AsComponent> & { field: Field; component?: (props: MergeWithAs, ComponentPropsWithoutRef, SwitchProps, AsComponent>) => ReactNode; }; export declare function FormSwitch({ field, component: Switch2, ...rest }: FormSwitchProps): ReactNode;