import * as React from 'react'; import * as PropTypes from 'prop-types'; import { ConfigConsumerProps } from '../config-provider'; export interface SwitchProps { prefixCls?: string; size?: 'small' | 'default'; className?: string; checked?: boolean; defaultChecked?: boolean; onChange?: (checked: boolean, event: MouseEvent) => any; onClick?: (checked: boolean, event: MouseEvent) => any; checkedChildren?: React.ReactNode; unCheckedChildren?: React.ReactNode; disabled?: boolean; loading?: boolean; autoFocus?: boolean; style?: React.CSSProperties; } export default class Switch extends React.Component { static propTypes: { prefixCls: PropTypes.Requireable; size: PropTypes.Requireable<"small" | "default" | undefined>; className: PropTypes.Requireable; }; private rcSwitch; focus(): void; blur(): void; saveSwitch: (node: any) => void; renderSwitch: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; }