import React, { ReactNode, type CSSProperties } from "react"; export type ToggleSwitchProps = ToggleSwitchProps.Controlled | ToggleSwitchProps.Uncontrolled; export declare namespace ToggleSwitchProps { type Common = { id?: string; className?: string; label: ReactNode; helperText?: ReactNode; /** Default: true */ showCheckedHint?: boolean; /** Default: false */ disabled?: boolean; /** Default: "left" */ labelPosition?: "left" | "right"; classes?: Partial>; style?: CSSProperties; name?: string; }; type Uncontrolled = Common & { /** Default: "false" */ defaultChecked?: boolean; checked?: never; onChange?: (checked: boolean, e: React.ChangeEvent) => void; inputTitle: string; }; type Controlled = Common & { defaultChecked?: never; checked: boolean; onChange: (checked: boolean, e: React.ChangeEvent) => void; inputTitle?: string; }; } /** @see */ export declare const ToggleSwitch: React.MemoExoticComponent>>; declare const addToggleSwitchTranslations: (params: { lang: string; messages: Partial<{ checked: string; unchecked: string; }>; }) => void; export { addToggleSwitchTranslations }; export default ToggleSwitch;