export default Toggle; /** * Toggle the state of a single setting on or off. */ declare class Toggle extends React.PureComponent { constructor(props: any); state: {}; controlled: boolean; handleChange: (event: any) => void; render(): JSX.Element; } declare namespace Toggle { namespace propTypes { const name: PropTypes.Requireable; const defaultChecked: PropTypes.Requireable; const checked: PropTypes.Requireable; const onChange: PropTypes.Requireable<(...args: any[]) => any>; const disabled: PropTypes.Requireable; } const hiName: string; } import React from 'react'; import PropTypes from 'prop-types';