import { ReactElement, ReactNode } from 'react'; export interface ControlSwitchProps { id: string; onChange: (checked: boolean, id: string) => void; disabled?: boolean; value?: boolean; label?: ReactNode; validationError?: ReactNode; themeControlSwitchContainer?: string; themeControlSwitch?: string; themeControlWrapper?: string; themeLabel?: string; } declare function ControlSwitch(props: ControlSwitchProps): ReactElement; declare namespace ControlSwitch { var propTypes: { /** Identifying value for input element. */ id: any; /** Input value */ value: any; /** Called during changes to the input element. Two arguments are received: 1. The incoming value and 2. the ID of the input. */ onChange: any; /** Value passed to the label element. */ label: any; /** If provided, the value of this propery displays as an error message. */ validationError: any; /** Assembly classes to apply to the switch container */ themeControlSwitchContainer: any; /** Assembly classes to apply to the switch element */ themeControlSwitch: any; /** Assembly classes to apply to the control wrapper */ themeControlWrapper: any; /** Assembly classes to apply to the label element */ themeLabel: any; }; } export default ControlSwitch;