import * as React from 'react'; import { SwitchPropsType } from './PropsType'; import { ConfigConsumerProps } from '../config-provider'; export interface SwitchProps extends SwitchPropsType { prefixCls?: string; className?: string; style?: React.CSSProperties; } interface SwitchState { checked: boolean; } declare class Switch extends React.Component { static Item: any; static defaultProps: { name: string; defaultChecked: boolean; disabled: boolean; onChange(): void; onClick(): void; }; static getDerivedStateFromProps(nextProps: SwitchProps): Partial; constructor(props: SwitchProps); onChange: (e: React.ChangeEvent) => void; setChecked(checked: boolean): void; onClick: (e: any) => void; renderSwitch: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Switch;