import { FormControlLabelProps, SwitchProps } from "../../components"; import { ChangeEvent, RefAttributes } from 'react'; import { Control, FieldPath, FieldValues, PathValue } from 'react-hook-form'; export type SwitchElementProps = FieldPath, TValue = unknown> = Omit & { name: TName; control?: Control; switchProps?: SwitchProps; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent, checked: boolean) => PathValue; }; }; type SwitchElementComponent = = FieldPath, TValue = unknown>(props: SwitchElementProps & RefAttributes) => JSX.Element; declare const _default: SwitchElementComponent; export default _default;