/// import * as React from 'react'; import PropTypes from 'prop-types'; import RcSwitch from '../rc-components/switch'; export interface SwitchProps { prefixCls?: string; size?: 'small' | 'default'; className?: string; checked?: boolean; defaultChecked?: boolean; onChange?: (checked: boolean) => any; checkedChildren?: React.ReactNode; unCheckedChildren?: React.ReactNode; disabled?: boolean; loading?: boolean; } export default class Switch extends React.Component { static defaultProps: { prefixCls: string; }; static propTypes: { prefixCls: PropTypes.Requireable; size: PropTypes.Requireable; className: PropTypes.Requireable; }; private rcSwitch; focus(): void; blur(): void; saveSwitch: (node: RcSwitch | null) => void; render(): JSX.Element; }